/* ==========================================================================
   SaveKora v6.0 — Clean-Flat Turbo Multi-Platform Design System (savekora.com)
   Pure flat surfaces, razor-sharp 1px borders, 20 bespoke platform color
   themes (Light + Dark WCAG AA), live on-button progress telemetry & Studios.
   ========================================================================== */

:root {
  /* Core Neutral Palette (Light) */
  --bg-page: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-hover: #E2E8F0;

  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-faint: #94A3B8;

  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  /* Default Universal Accent: SaveKora Royal Indigo */
  --accent: #4F46E5;
  --accent-hover: #4338CA;
  --accent-soft: #EEF2FF;
  --accent-border: #C7D2FE;
  --accent-fg: #FFFFFF;

  /* Semantic Status */
  --ok-fg: #15803D;
  --ok-bg: #F0FDF4;
  --ok-border: #BBF7D0;
  --err-fg: #B91C1C;
  --err-bg: #FEF2F2;
  --err-border: #FECACA;

  /* Typography & Rhythm */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --container-max: 1180px;
  --header-h: 64px;
}

html[data-theme="dark"] {
  --bg-page: #080B14;
  --bg-alt: #0C111E;
  --bg-surface: #111827;
  --bg-subtle: #182234;
  --bg-hover: #1E293B;

  --text-main: #F8FAFC;
  --text-body: #CBD5E1;
  --text-muted: #94A3B8;
  --text-faint: #64748B;

  --border: #1E293B;
  --border-strong: #334155;

  --accent: #6366F1;
  --accent-hover: #4F46E5;
  --accent-soft: rgba(99, 102, 241, 0.14);
  --accent-border: rgba(99, 102, 241, 0.36);
  --accent-fg: #FFFFFF;

  --ok-fg: #4ADE80;
  --ok-bg: rgba(34, 197, 94, 0.12);
  --ok-border: rgba(34, 197, 94, 0.3);
  --err-fg: #FCA5A5;
  --err-bg: rgba(239, 68, 68, 0.12);
  --err-border: rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   20 Bespoke Per-Platform Color Themes (Page + Result Studio Scoped)
   ========================================================================== */

body[data-platform="youtube"],
.sv4-studio-card[data-plat="youtube"] {
  --accent: #E11D48;
  --accent-hover: #BE123C;
  --accent-soft: #FFF1F2;
  --accent-border: #FECDD3;
  --accent-fg: #FFFFFF;
}
html[data-theme="dark"] body[data-platform="youtube"],
html[data-theme="dark"] .sv4-studio-card[data-plat="youtube"] {
  --accent: #F43F5E;
  --accent-hover: #E11D48;
  --accent-soft: rgba(244, 63, 94, 0.14);
  --accent-border: rgba(244, 63, 94, 0.36);
  --accent-fg: #FFFFFF;
}

body[data-platform="instagram"],
.sv4-studio-card[data-plat="instagram"] {
  --accent: #D9266F;
  --accent-hover: #BE185D;
  --accent-soft: #FDF2F8;
  --accent-border: #FBCFE8;
  --accent-fg: #FFFFFF;
}
html[data-theme="dark"] body[data-platform="instagram"],
html[data-theme="dark"] .sv4-studio-card[data-plat="instagram"] {
  --accent: #EC4899;
  --accent-hover: #DB2777;
  --accent-soft: rgba(236, 72, 153, 0.14);
  --accent-border: rgba(236, 72, 153, 0.36);
  --accent-fg: #FFFFFF;
}

body[data-platform="tiktok"],
.sv4-studio-card[data-plat="tiktok"] {
  --accent: #EA1D49;
  --accent-hover: #C8143B;
  --accent-soft: #FFF1F3;
  --accent-border: #FECDD6;
  --accent-fg: #FFFFFF;
}
html[data-theme="dark"] body[data-platform="tiktok"],
html[data-theme="dark"] .sv4-studio-card[data-plat="tiktok"] {
  --accent: #FB375E;
  --accent-hover: #EA1D49;
  --accent-soft: rgba(251, 55, 94, 0.14);
  --accent-border: rgba(251, 55, 94, 0.36);
  --accent-fg: #FFFFFF;
}

body[data-platform="facebook"],
.sv4-studio-card[data-plat="facebook"] {
  --accent: #1877F2;
  --accent-hover: #1463CC;
  --accent-soft: #EFF6FF;
  --accent-border: #BFDBFE;
  --accent-fg: #FFFFFF;
}
html[data-theme="dark"] body[data-platform="facebook"],
html[data-theme="dark"] .sv4-studio-card[data-plat="facebook"] {
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --accent-border: rgba(59, 130, 246, 0.36);
  --accent-fg: #FFFFFF;
}

body[data-platform="twitter"],
.sv4-studio-card[data-plat="twitter"] {
  --accent: #0F172A;
  --accent-hover: #1E293B;
  --accent-soft: #F1F5F9;
  --accent-border: #CBD5E1;
  --accent-fg: #FFFFFF;
}
html[data-theme="dark"] body[data-platform="twitter"],
html[data-theme="dark"] .sv4-studio-card[data-plat="twitter"] {
  --accent: #F8FAFC;
  --accent-hover: #E2E8F0;
  --accent-soft: rgba(248, 250, 252, 0.11);
  --accent-border: rgba(248, 250, 252, 0.3);
  --accent-fg: #090D16;
}

body[data-platform="reddit"],
.sv4-studio-card[data-plat="reddit"],
body[data-platform="soundcloud"],
.sv4-studio-card[data-plat="soundcloud"] {
  --accent: #EA580C;
  --accent-hover: #C2410C;
  --accent-soft: #FFF7ED;
  --accent-border: #FED7AA;
  --accent-fg: #FFFFFF;
}
html[data-theme="dark"] body[data-platform="reddit"],
html[data-theme="dark"] .sv4-studio-card[data-plat="reddit"],
html[data-theme="dark"] body[data-platform="soundcloud"],
html[data-theme="dark"] .sv4-studio-card[data-plat="soundcloud"] {
  --accent: #FB923C;
  --accent-hover: #F97316;
  --accent-soft: rgba(251, 146, 60, 0.14);
  --accent-border: rgba(251, 146, 60, 0.36);
  --accent-fg: #1C0A00;
}

body[data-platform="pinterest"],
.sv4-studio-card[data-plat="pinterest"] {
  --accent: #DC2626;
  --accent-hover: #B91C1C;
  --accent-soft: #FEF2F2;
  --accent-border: #FECACA;
  --accent-fg: #FFFFFF;
}
html[data-theme="dark"] body[data-platform="pinterest"],
html[data-theme="dark"] .sv4-studio-card[data-plat="pinterest"] {
  --accent: #F87171;
  --accent-hover: #EF4444;
  --accent-soft: rgba(248, 113, 113, 0.14);
  --accent-border: rgba(248, 113, 113, 0.36);
  --accent-fg: #1F0505;
}

body[data-platform="vimeo"],
.sv4-studio-card[data-plat="vimeo"],
body[data-platform="bilibili"],
.sv4-studio-card[data-plat="bilibili"],
body[data-platform="streamable"],
.sv4-studio-card[data-plat="streamable"] {
  --accent: #0284C7;
  --accent-hover: #0369A1;
  --accent-soft: #F0F9FF;
  --accent-border: #BAE6FD;
  --accent-fg: #FFFFFF;
}
html[data-theme="dark"] body[data-platform="vimeo"],
html[data-theme="dark"] .sv4-studio-card[data-plat="vimeo"],
html[data-theme="dark"] body[data-platform="bilibili"],
html[data-theme="dark"] .sv4-studio-card[data-plat="bilibili"],
html[data-theme="dark"] body[data-platform="streamable"],
html[data-theme="dark"] .sv4-studio-card[data-plat="streamable"] {
  --accent: #38BDF8;
  --accent-hover: #0EA5E9;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --accent-border: rgba(56, 189, 248, 0.36);
  --accent-fg: #041E2B;
}

body[data-platform="dailymotion"],
.sv4-studio-card[data-plat="dailymotion"] {
  --accent: #4F46E5;
  --accent-hover: #4338CA;
  --accent-soft: #EEF2FF;
  --accent-border: #C7D2FE;
  --accent-fg: #FFFFFF;
}
html[data-theme="dark"] body[data-platform="dailymotion"],
html[data-theme="dark"] .sv4-studio-card[data-plat="dailymotion"] {
  --accent: #818CF8;
  --accent-hover: #6366F1;
  --accent-soft: rgba(129, 140, 248, 0.14);
  --accent-border: rgba(129, 140, 248, 0.36);
  --accent-fg: #0D0F2B;
}

body[data-platform="twitch"],
.sv4-studio-card[data-plat="twitch"] {
  --accent: #7C3AED;
  --accent-hover: #6D28D9;
  --accent-soft: #F5F3FF;
  --accent-border: #DDD6FE;
  --accent-fg: #FFFFFF;
}
html[data-theme="dark"] body[data-platform="twitch"],
html[data-theme="dark"] .sv4-studio-card[data-plat="twitch"] {
  --accent: #A78BFA;
  --accent-hover: #8B5CF6;
  --accent-soft: rgba(167, 139, 250, 0.14);
  --accent-border: rgba(167, 139, 250, 0.36);
  --accent-fg: #15092E;
}

body[data-platform="kick"],
.sv4-studio-card[data-plat="kick"] {
  --accent: #16A34A;
  --accent-hover: #15803D;
  --accent-soft: #F0FDF4;
  --accent-border: #BBF7D0;
  --accent-fg: #FFFFFF;
}
html[data-theme="dark"] body[data-platform="kick"],
html[data-theme="dark"] .sv4-studio-card[data-plat="kick"] {
  --accent: #22C55E;
  --accent-hover: #16A34A;
  --accent-soft: rgba(34, 197, 94, 0.14);
  --accent-border: rgba(34, 197, 94, 0.36);
  --accent-fg: #042410;
}

body[data-platform="snapchat"],
.sv4-studio-card[data-plat="snapchat"] {
  --accent: #D97706;
  --accent-hover: #B45309;
  --accent-soft: #FFFBEB;
  --accent-border: #FDE68A;
  --accent-fg: #FFFFFF;
}
html[data-theme="dark"] body[data-platform="snapchat"],
html[data-theme="dark"] .sv4-studio-card[data-plat="snapchat"] {
  --accent: #FACC15;
  --accent-hover: #EAB308;
  --accent-soft: rgba(250, 204, 21, 0.14);
  --accent-border: rgba(250, 204, 21, 0.36);
  --accent-fg: #18181B;
}

body[data-platform="linkedin"],
.sv4-studio-card[data-plat="linkedin"],
body[data-platform="tumblr"],
.sv4-studio-card[data-plat="tumblr"] {
  --accent: #0A66C2;
  --accent-hover: #084E96;
  --accent-soft: #EFF6FF;
  --accent-border: #BFDBFE;
  --accent-fg: #FFFFFF;
}
html[data-theme="dark"] body[data-platform="linkedin"],
html[data-theme="dark"] .sv4-studio-card[data-plat="linkedin"],
html[data-theme="dark"] body[data-platform="tumblr"],
html[data-theme="dark"] .sv4-studio-card[data-plat="tumblr"] {
  --accent: #60A5FA;
  --accent-hover: #3B82F6;
  --accent-soft: rgba(96, 165, 250, 0.14);
  --accent-border: rgba(96, 165, 250, 0.36);
  --accent-fg: #06182E;
}

body[data-platform="threads"],
.sv4-studio-card[data-plat="threads"] {
  --accent: #18181B;
  --accent-hover: #27272A;
  --accent-soft: #F4F4F5;
  --accent-border: #D4D4D8;
  --accent-fg: #FFFFFF;
}
html[data-theme="dark"] body[data-platform="threads"],
html[data-theme="dark"] .sv4-studio-card[data-plat="threads"] {
  --accent: #F4F4F5;
  --accent-hover: #E4E4E7;
  --accent-soft: rgba(244, 244, 245, 0.12);
  --accent-border: rgba(244, 244, 245, 0.3);
  --accent-fg: #09090B;
}

body[data-platform="rumble"],
.sv4-studio-card[data-plat="rumble"] {
  --accent: #4D7C0F;
  --accent-hover: #3F6212;
  --accent-soft: #F7FEE7;
  --accent-border: #D9F99D;
  --accent-fg: #FFFFFF;
}
html[data-theme="dark"] body[data-platform="rumble"],
html[data-theme="dark"] .sv4-studio-card[data-plat="rumble"] {
  --accent: #84CC16;
  --accent-hover: #65A30D;
  --accent-soft: rgba(132, 204, 22, 0.14);
  --accent-border: rgba(132, 204, 22, 0.36);
  --accent-fg: #142602;
}

body[data-platform="likee"],
.sv4-studio-card[data-plat="likee"] {
  --accent: #DB2777;
  --accent-hover: #BE185D;
  --accent-soft: #FDF2F8;
  --accent-border: #FBCFE8;
  --accent-fg: #FFFFFF;
}
html[data-theme="dark"] body[data-platform="likee"],
html[data-theme="dark"] .sv4-studio-card[data-plat="likee"] {
  --accent: #F472B6;
  --accent-hover: #EC4899;
  --accent-soft: rgba(244, 114, 182, 0.14);
  --accent-border: rgba(244, 114, 182, 0.36);
  --accent-fg: #2B0618;
}

/* ==========================================================================
   20 Colored Platform Icon Tiles (.sv-plat-*)
   ========================================================================== */

.sv-plat-youtube     { background: #FFF1F2 !important; color: #E11D48 !important; }
.sv-plat-instagram   { background: #FDF2F8 !important; color: #D9266F !important; }
.sv-plat-tiktok      { background: #FFF1F3 !important; color: #EA1D49 !important; }
.sv-plat-facebook    { background: #EFF6FF !important; color: #1877F2 !important; }
.sv-plat-twitter     { background: #F1F5F9 !important; color: #0F172A !important; }
.sv-plat-reddit      { background: #FFF7ED !important; color: #EA580C !important; }
.sv-plat-pinterest   { background: #FEF2F2 !important; color: #DC2626 !important; }
.sv-plat-vimeo       { background: #F0F9FF !important; color: #0284C7 !important; }
.sv-plat-dailymotion { background: #EEF2FF !important; color: #4F46E5 !important; }
.sv-plat-twitch      { background: #F5F3FF !important; color: #7C3AED !important; }
.sv-plat-kick        { background: #F0FDF4 !important; color: #16A34A !important; }
.sv-plat-snapchat    { background: #FFFBEB !important; color: #D97706 !important; }
.sv-plat-linkedin    { background: #EFF6FF !important; color: #0A66C2 !important; }
.sv-plat-threads     { background: #F4F4F5 !important; color: #18181B !important; }
.sv-plat-soundcloud  { background: #FFF7ED !important; color: #EA580C !important; }
.sv-plat-rumble      { background: #F7FEE7 !important; color: #4D7C0F !important; }
.sv-plat-tumblr      { background: #EFF6FF !important; color: #1D4ED8 !important; }
.sv-plat-likee       { background: #FDF2F8 !important; color: #DB2777 !important; }
.sv-plat-bilibili    { background: #F0F9FF !important; color: #0284C7 !important; }
.sv-plat-streamable  { background: #F0F9FF !important; color: #0369A1 !important; }

html[data-theme="dark"] .sv-plat-youtube     { background: rgba(244, 63, 94, 0.16) !important; color: #FB7185 !important; }
html[data-theme="dark"] .sv-plat-instagram   { background: rgba(236, 72, 153, 0.16) !important; color: #F472B6 !important; }
html[data-theme="dark"] .sv-plat-tiktok      { background: rgba(251, 55, 94, 0.16) !important; color: #FB7185 !important; }
html[data-theme="dark"] .sv-plat-facebook    { background: rgba(59, 130, 246, 0.16) !important; color: #60A5FA !important; }
html[data-theme="dark"] .sv-plat-twitter     { background: rgba(248, 250, 252, 0.12) !important; color: #F8FAFC !important; }
html[data-theme="dark"] .sv-plat-reddit      { background: rgba(251, 146, 60, 0.16) !important; color: #FB923C !important; }
html[data-theme="dark"] .sv-plat-pinterest   { background: rgba(248, 113, 113, 0.16) !important; color: #F87171 !important; }
html[data-theme="dark"] .sv-plat-vimeo       { background: rgba(56, 189, 248, 0.16) !important; color: #38BDF8 !important; }
html[data-theme="dark"] .sv-plat-dailymotion { background: rgba(129, 140, 248, 0.16) !important; color: #818CF8 !important; }
html[data-theme="dark"] .sv-plat-twitch      { background: rgba(167, 139, 250, 0.16) !important; color: #A78BFA !important; }
html[data-theme="dark"] .sv-plat-kick        { background: rgba(34, 197, 94, 0.16) !important; color: #4ADE80 !important; }
html[data-theme="dark"] .sv-plat-snapchat    { background: rgba(250, 204, 21, 0.16) !important; color: #FACC15 !important; }
html[data-theme="dark"] .sv-plat-linkedin    { background: rgba(96, 165, 250, 0.16) !important; color: #60A5FA !important; }
html[data-theme="dark"] .sv-plat-threads     { background: rgba(244, 244, 245, 0.12) !important; color: #F4F4F5 !important; }
html[data-theme="dark"] .sv-plat-soundcloud  { background: rgba(251, 146, 60, 0.16) !important; color: #FB923C !important; }
html[data-theme="dark"] .sv-plat-rumble      { background: rgba(132, 204, 22, 0.16) !important; color: #A3E635 !important; }
html[data-theme="dark"] .sv-plat-tumblr      { background: rgba(96, 165, 250, 0.16) !important; color: #60A5FA !important; }
html[data-theme="dark"] .sv-plat-likee       { background: rgba(244, 114, 182, 0.16) !important; color: #F472B6 !important; }
html[data-theme="dark"] .sv-plat-bilibili    { background: rgba(56, 189, 248, 0.16) !important; color: #38BDF8 !important; }
html[data-theme="dark"] .sv-plat-streamable  { background: rgba(56, 189, 248, 0.16) !important; color: #38BDF8 !important; }

/* ==========================================================================
   Base Reset & Typography
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-page);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-main);
  margin: 0 0 0.6rem;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

p {
  margin: 0 0 1rem;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

img, video, svg {
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
}

code, kbd, .mono {
  font-family: var(--font-mono);
}

code {
  font-size: 0.86em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border);
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  font-size: 0.8em;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
}

.sv-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 999;
}
.sv-skip-link:focus {
  left: 12px;
}

/* ==========================================================================
   Layout Containers & Spacing Utilities
   ========================================================================== */

.sv-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.sv-narrow {
  max-width: 820px;
}

.sv-mt-sm { margin-top: 0.75rem; }
.sv-mt-md { margin-top: 1.25rem; }
.sv-mt-lg { margin-top: 1.75rem; }
.sv-mt-xl { margin-top: 2.5rem; }
.sv-mb-xl { margin-bottom: 2.25rem; }

/* ==========================================================================
   Sticky Flat Header, 20-Platform Mega-Menu & Mobile Drawer
   ========================================================================== */

.sv-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.sv-header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sv-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-weight: 800;
  text-decoration: none;
  flex-shrink: 0;
}

.sv-brand-mark {
  display: inline-flex;
  color: var(--accent);
}
/* Keep header brand mark crisp Cobalt on X/Threads dark/ink themes where accent is white/near-black */
body[data-platform="twitter"] .sv-header .sv-brand-mark,
body[data-platform="threads"] .sv-header .sv-brand-mark {
  color: #2563EB;
}

.sv-brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.sv-brand-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.sv-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sv-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.sv-nav-link:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}
.sv-nav-link.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Mega Dropdown */
.sv-nav-dropdown {
  position: relative;
}

.sv-caret {
  transition: transform 0.16s ease;
}
.sv-nav-dropdown.is-open .sv-caret {
  transform: rotate(180deg);
}

.sv-mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  width: 680px;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  display: none;
  z-index: 300;
}
html[data-theme="dark"] .sv-mega-menu {
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}
.sv-nav-dropdown.is-open .sv-mega-menu {
  display: block;
}

.sv-mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.sv-mega-head a {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.83rem;
  font-weight: 700;
}

.sv-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.sv-mega-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  border: 1px solid transparent;
}
.sv-mega-item:hover,
.sv-mega-item.is-current {
  background: var(--bg-alt);
  border-color: var(--border);
}

.sv-mega-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sv-mega-icon svg {
  width: 17px;
  height: 17px;
}

.sv-mega-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sv-mega-text strong {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-mega-text small {
  font-size: 0.71rem;
  color: var(--text-muted);
}

/* Header Right Actions */
.sv-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sv-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sv-icon-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border-strong);
}

html[data-theme="light"] .sv-icon-moon { display: inline-block; }
html[data-theme="light"] .sv-icon-sun  { display: none; }
html[data-theme="dark"]  .sv-icon-moon { display: none; }
html[data-theme="dark"]  .sv-icon-sun  { display: inline-block; }

.sv-mobile-menu-btn {
  display: none;
}

.sv-header-tools-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.sv-header-tools-pill:hover,
.sv-header-tools-pill.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

/* Slide-Over Mobile Sidebar & Backdrop */
body.sv-sidebar-open {
  overflow: hidden;
}

.sv-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 510;
  background: rgba(9, 13, 22, 0.54);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sv-sidebar-backdrop.is-open {
  opacity: 1;
}

.sv-mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 520;
  width: min(336px, 88vw);
  background: var(--bg-surface);
  border-left: 1px solid var(--border-strong);
  box-shadow: -16px 0 40px rgba(9, 13, 22, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
html[data-theme="dark"] .sv-mobile-sidebar {
  box-shadow: -18px 0 44px rgba(0, 0, 0, 0.6);
}
.sv-mobile-sidebar.is-open {
  transform: translateX(0);
}

.sv-sidebar-head {
  height: 60px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
body[data-platform="twitter"] .sv-mobile-sidebar .sv-brand-mark,
body[data-platform="threads"] .sv-mobile-sidebar .sv-brand-mark {
  color: #2563EB;
}

.sv-sidebar-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 16px 24px;
}

.sv-mobile-quick-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 18px;
}

.sv-mobile-qbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
}
.sv-mobile-qbtn.is-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

.sv-mobile-section-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.sv-mobile-plat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 18px;
}

.sv-mobile-plat-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 0.79rem;
  font-weight: 600;
  min-width: 0;
}
.sv-mobile-plat-item .sv-mega-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.sv-mobile-plat-item .sv-mega-icon svg {
  width: 13px;
  height: 13px;
}
.sv-mobile-plat-name {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-mobile-plat-cnt {
  font-size: 0.67rem;
  color: var(--text-faint);
  font-weight: 700;
  flex-shrink: 0;
}
.sv-mobile-plat-item.is-current {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.sv-mobile-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  padding-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}
.sv-mobile-footer-links a {
  color: var(--text-muted);
}
.sv-mobile-footer-links a:hover {
  color: var(--text-main);
}

/* ==========================================================================
   Hero Section, Tool Badges & Sibling Format Switcher
   ========================================================================== */

.sv-hero {
  padding: 44px 0 36px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
}

.sv-hero-tool {
  padding-top: 26px;
}

.sv-breadcrumbs {
  margin-bottom: 18px;
}
.sv-breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.sv-breadcrumbs li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--text-faint);
}
.sv-breadcrumbs a {
  color: var(--text-muted);
  font-weight: 500;
}
.sv-breadcrumbs a:hover {
  color: var(--text-main);
}
.sv-breadcrumbs li[aria-current="page"] {
  color: var(--text-main);
  font-weight: 600;
}

.sv-hero-head {
  max-width: 820px;
  margin: 0 auto 24px;
  text-align: center;
}

.sv-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.sv-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16A34A;
  flex-shrink: 0;
}

.sv-tool-badge-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.sv-tool-plat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--accent-border);
}
.sv-tool-plat-chip svg {
  width: 15px;
  height: 15px;
}

.sv-tool-spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 0.78rem;
  font-weight: 600;
}

.sv-hero-title {
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.sv-accent-word {
  color: var(--accent);
}

.sv-hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  color: var(--text-muted);
  max-width: 670px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Sibling Sub-Tool Switcher Strip */
.sv-sibling-bar-wrap {
  margin-top: 18px;
}

.sv-sibling-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  max-width: 100%;
}

.sv-sibling-tab svg {
  display: block;
  flex-shrink: 0;
}
.sv-sibling-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-size: 0.81rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
}
.sv-sibling-tab:hover {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border);
}
.sv-sibling-tab.is-current {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
  font-weight: 700;
}

/* ==========================================================================
   Flat Command Input Bar, Sample Pills & Trust Strip
   ========================================================================== */

.sv-studio-shell {
  max-width: 820px;
  margin: 0 auto;
}

.sv-search-form {
  margin: 0;
}

.sv-command-bar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 6px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sv-command-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.sv-input-box {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 4px;
}

.sv-detected-badge {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sv-detected-badge svg {
  width: 19px;
  height: 19px;
}

.sv-url-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-size: 16px; /* Prevents iOS auto-zoom */
  font-weight: 500;
}
.sv-url-input::placeholder {
  color: var(--text-faint);
  font-weight: 400;
}

.sv-paste-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.sv-paste-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.sv-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.sv-submit-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.sv-submit-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.sv-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.2px solid currentColor;
  border-right-color: transparent;
  animation: svSpin 0.65s linear infinite;
}
@keyframes svSpin {
  to { transform: rotate(360deg); }
}

/* Sample Bar */
.sv-sample-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.sv-sample-caption {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}
.sv-sample-caption svg {
  color: var(--accent);
}

.sv-sample-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.sv-sample-pill {
  height: 28px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-body);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.sv-sample-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Quick-Launch Platform Dock (Homepage) */
.sv-platform-dock {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  max-width: 860px;
  margin: 22px auto 0;
}

.sv-dock-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px 0 7px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
}
.sv-dock-chip:hover {
  border-color: var(--border-strong);
  background: var(--bg-alt);
}
.sv-dock-chip.is-more {
  padding: 0 12px;
  background: var(--bg-alt);
  color: var(--text-muted);
}

.sv-dock-ico {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sv-dock-ico svg {
  width: 12px;
  height: 12px;
}

/* Trust Strip & On-Page Jump Bar */
.sv-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 20px;
}

.sv-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--text-muted);
}
.sv-trust-item svg {
  color: var(--ok-fg);
  flex-shrink: 0;
}

.sv-toc-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.81rem;
}
.sv-toc-label {
  font-weight: 700;
  color: var(--text-muted);
}
.sv-toc-bar a {
  color: var(--text-body);
  font-weight: 600;
}
.sv-toc-bar a:hover {
  color: var(--accent);
}

/* Friendly Alerts */
.sv-alert-error {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--err-bg);
  border: 1px solid var(--err-border);
  color: var(--err-fg);
  display: flex;
  align-items: flex-start;
  gap: 11px;
  text-align: left;
}
.sv-alert-ico {
  flex-shrink: 0;
  margin-top: 1px;
}
.sv-alert-body strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.sv-alert-body p {
  font-size: 0.84rem;
  opacity: 0.92;
}
.sv-alert-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.sv-alert-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--err-fg);
  color: #FFFFFF;
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1;
}
html[data-theme="dark"] .sv-alert-switch-btn {
  color: #1F0505;
}
.sv-alert-switch-btn:hover {
  opacity: 0.9;
  color: #FFFFFF;
}
html[data-theme="dark"] .sv-alert-switch-btn:hover {
  color: #1F0505;
}
.sv-alert-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 11px;
  border-radius: 6px;
  border: 1px solid var(--err-border);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.sv-alert-success {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok-fg);
}

/* Recent History Shelf */
.sv-recent-shelf {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.sv-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.sv-recent-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--text-body);
}
.sv-recent-title small {
  font-weight: 500;
  color: var(--text-muted);
}

.sv-recent-clear {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}
.sv-recent-clear:hover {
  color: var(--err-fg);
}

.sv-recent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sv-recent-chip {
  max-width: 260px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-body);
  font-size: 0.76rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-recent-chip:hover {
  border-color: var(--accent);
  color: var(--text-main);
}

/* ==========================================================================
   Purpose-Built Post-Extraction Result Studios (.sv4-*) — v5.1 Compact Edition
   Flat 1px architecture + Dynamic per-platform --accent theming
   ========================================================================== */

.sv-yt-result,
.sv-social-mounts {
  margin-top: 16px;
}

.sv4-studio-card {
  scroll-margin-top: 80px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--text-main);
  text-align: left;
  min-width: 0;
}

.sv4-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.sv4-plat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 21px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1;
}

.sv4-mode-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 21px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1;
}

.sv4-dur-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 21px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
}

.sv4-hdr-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 19px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}
html[data-theme="dark"] .sv4-hdr-pill {
  background: rgba(251, 191, 36, 0.16);
  color: #FCD34D;
}

.sv4-qr-inline-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-body);
  font-size: 0.69rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.sv4-qr-inline-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sv4-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.32;
  margin: 0 0 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sv4-meta-line {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3-Area Responsive Video, Reels & Shorts Grid */
.sv4-video-grid {
  display: grid;
  column-gap: 16px;
  row-gap: 10px;
  align-items: start;
  min-width: 0;
}

.sv4-video-studio.is-landscape-layout .sv4-video-grid {
  grid-template-columns: 264px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "player head"
    "player actions";
}

.sv4-video-studio.is-vertical-layout .sv4-video-grid {
  grid-template-columns: 172px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "player head"
    "player actions";
}

.sv4-player-box {
  grid-area: player;
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #0B0F17;
  border: 1px solid var(--border);
}
.sv4-player-box.is-landscape-player {
  aspect-ratio: 16 / 9;
}
.sv4-player-box.is-portrait-player {
  aspect-ratio: 9 / 16;
  max-height: 296px;
}

.sv4-video-head {
  grid-area: head;
  min-width: 0;
}

.sv4-video-actions {
  grid-area: actions;
  min-width: 0;
}

.sv4-player-poster,
.sv4-inline-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sv4-inline-video-el {
  object-fit: contain;
  background: #000;
}

.sv4-player-poster-empty,
.is-img-fallback::before {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 0.76rem;
  font-weight: 600;
}
.is-img-fallback::before {
  content: "Preview Ready";
}

.sv4-player-dur {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(9, 13, 22, 0.86);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
}

.sv4-play-overlay-btn {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(9, 13, 22, 0.22);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.sv4-play-overlay-btn:hover {
  background: rgba(9, 13, 22, 0.4);
}

.sv4-play-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sv4-play-circle svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

/* Compact Audio & MP3 Studio */
.sv4-audio-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
}

.sv4-audio-cover-wrap {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.sv4-audio-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sv4-audio-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.8rem;
}

.sv4-audio-meta {
  min-width: 0;
  flex: 1;
}

.sv4-audio-player-bar {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.sv4-audio-player-bar audio {
  width: 100%;
  height: 32px;
  display: block;
}

/* Dubbed Language Selector Bar */
.sv4-dub-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.sv4-dub-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-body);
  white-space: nowrap;
}

.sv4-dub-select,
.flat-select {
  height: 29px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.76rem;
  font-weight: 600;
  max-width: 100%;
}

/* Universal Homepage Mode Pill Tabs */
.sv4-universal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.sv4-utab {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 9px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--text-body);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.sv4-utab:hover {
  color: var(--text-main);
}
.sv4-utab.is-active {
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
}

/* Compact Single-Line Quality Download Rows (.sv4-qcard) */
.sv4-qcard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sv4-qcard-extra {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sv4-qcard-extra[hidden] {
  display: none !important;
}

.sv4-more-qualities-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px dashed var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}
.sv4-more-qualities-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-alt);
}

.sv4-qcard-list.is-two-col-desktop {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.sv4-qcard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 5px 7px 5px 9px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  min-width: 0;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}
.sv4-qcard:hover {
  border-color: var(--border-strong);
}
.sv4-qcard.is-best {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.sv4-qcard-main {
  min-width: 0;
  flex: 1 1 auto;
}

.sv4-qcard-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ext-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 20px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.ext-badge.mp3 {
  background: #F0FDF4;
  border-color: #BBF7D0;
  color: #15803D;
}
.ext-badge.m4a {
  background: #F0F9FF;
  border-color: #BAE6FD;
  color: #0369A1;
}
.ext-badge.jpg, .ext-badge.png, .ext-badge.gif, .ext-badge.webp {
  background: #FEFCE8;
  border-color: #FEF08A;
  color: #A16207;
}
html[data-theme="dark"] .ext-badge.mp3 {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.32);
  color: #4ADE80;
}
html[data-theme="dark"] .ext-badge.m4a {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.32);
  color: #38BDF8;
}
html[data-theme="dark"] .ext-badge.jpg,
html[data-theme="dark"] .ext-badge.png,
html[data-theme="dark"] .ext-badge.gif,
html[data-theme="dark"] .ext-badge.webp {
  background: rgba(250, 204, 21, 0.14);
  border-color: rgba(250, 204, 21, 0.32);
  color: #FACC15;
}

.sv4-qcard-title {
  font-size: 0.83rem;
  font-weight: 650;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sv4-best-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.sv4-muted-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.sv4-qcard-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sv4-qcard-size {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sv4-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.sv4-dl-btn svg {
  width: 13px;
  height: 13px;
  display: block;
  flex-shrink: 0;
}
.sv4-dl-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.sv4-dl-btn.is-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
.sv4-dl-btn.is-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-fg);
}

/* Compact 2-Column Cover / Thumbnail & Photo / GIF Studios */
.sv4-cover-grid {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.sv4-cover-stage {
  position: relative;
  width: 100%;
  max-height: 244px;
  min-height: 140px;
  border-radius: 10px;
  overflow: hidden;
  background: #0B0F17;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
.sv4-cover-stage.is-yt-16x9 {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.sv4-cover-hero-img {
  max-width: 100%;
  max-height: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.sv4-cover-body {
  min-width: 0;
}
.sv4-cover-body .sv4-meta-line {
  margin-bottom: 10px;
}

.sv4-zoom-pill {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  border: none;
  background: rgba(9, 13, 22, 0.84);
  color: #FFFFFF;
  font-size: 0.69rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

/* Compact Subtitle & Live Transcript Studio */
.sv4-sub-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sv4-sub-thumb {
  width: 96px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.sv4-sub-meta {
  min-width: 0;
  flex: 1;
}

.sv4-sub-filter-wrap {
  margin-bottom: 8px;
}

.sv4-sub-search {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--text-main);
  font-size: 0.82rem;
  outline: none;
}
.sv4-sub-search:focus {
  border-color: var(--accent);
  background: var(--bg-surface);
}

.sv4-sub-btn-group {
  gap: 5px;
}

#ytSubRowsWrap {
  max-height: 310px;
  overflow-y: auto;
}

.sv4-sub-Reader {
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  overflow: hidden;
}

.sv4-sub-reader-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 0.77rem;
}

.sv4-sub-reader-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sv4-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.sv4-mini-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sv4-sub-reader-body {
  margin: 0;
  padding: 11px 12px;
  max-height: 210px;
  overflow-y: auto;
  font-family: var(--font-sans);
  font-size: 0.81rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--text-body);
}

.sv4-empty-notice {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

/* Playlist & Audio Tracklist Studio */
.sv4-playlist-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.sv4-playlist-meta {
  min-width: 0;
  flex: 1;
}

.sv4-tracklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
}

.sv4-track-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.sv4-track-play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.sv4-track-art {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.sv4-track-info {
  min-width: 0;
  flex: 1;
}
.sv4-track-title {
  font-size: 0.81rem;
  font-weight: 650;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv4-track-sub {
  font-size: 0.69rem;
  color: var(--text-muted);
}

/* Multi-Slide Carousel, Story & Highlight Grid */
.ig-collection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ig-collection-meta {
  min-width: 0;
  flex: 1 1 240px;
}

.ig-collection-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

.ig-slides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 10px;
}

.ig-slide-card {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ig-slide-thumb-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 220px;
  background: #0B0F17;
  overflow: hidden;
  cursor: pointer;
}
.ig-slide-thumb-wrap.is-vertical-slide,
.ig-slides-grid.is-stories-grid .ig-slide-thumb-wrap {
  aspect-ratio: 9 / 16;
  max-height: 236px;
}

.ig-slide-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ig-slide-num {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(9, 13, 22, 0.82);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2;
}

.ig-slide-kind {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(9, 13, 22, 0.82);
  color: #FFFFFF;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.ig-slide-body {
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.ig-slide-select {
  width: 100%;
  height: 27px;
  font-size: 0.72rem;
}

.ig-slide-dl-btn {
  width: 100%;
  height: 29px;
}

/* ==========================================================================
   Content Sections, Platform Matrix, Steps, Features, Specs & FAQ
   ========================================================================== */

.sv-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.sv-section-alt {
  background: var(--bg-alt);
}

.sv-section-head {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.sv-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 6px;
}

.sv-section-head h2 {
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  font-weight: 800;
}

.sv-section-head p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* 20-Platform Hub Matrix */
.sv-hub-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sv-hub-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sv-hub-card:hover {
  border-color: var(--border-strong);
}

.sv-hub-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sv-hub-title-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-main);
  font-size: 0.94rem;
}
.sv-hub-title-link:hover strong {
  color: var(--accent);
}

.sv-platform-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sv-platform-card-icon svg {
  width: 18px;
  height: 18px;
}

.sv-hub-count {
  font-size: 0.71rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-muted);
  white-space: nowrap;
}

.sv-hub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sv-hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 0.75rem;
  font-weight: 600;
}
.sv-hub-chip svg {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
}
.sv-hub-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.sv-hub-chip:hover svg {
  color: var(--accent);
}

/* Trending Sub-Tools Callout */
.sv-subtools-callout {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.sv-subtools-label {
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--text-main);
}

.sv-subtools-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sv-subtools-links a {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 0.76rem;
  font-weight: 600;
}
.sv-subtools-links a:hover,
.sv-subtools-links a.is-all {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

/* 3-Step Grid + Platform-Tailored UI Screenshot Mockups */
.sv-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sv-step-card {
  min-width: 0;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.sv-step-shot {
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  overflow: hidden;
  user-select: none;
}

.sv-shot-winbar {
  height: 28px;
  padding: 0 10px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sv-shot-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.sv-shot-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
}

.sv-shot-app-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-body);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sv-shot-app-ico {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sv-shot-app-ico svg {
  width: 10px;
  height: 10px;
}
.sv-plat-default {
  background: #EFF6FF !important;
  color: #2563EB !important;
}
html[data-theme="dark"] .sv-plat-default {
  background: rgba(59, 130, 246, 0.16) !important;
  color: #60A5FA !important;
}

.sv-shot-addr {
  font-size: 0.66rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 78%;
}

.sv-shot-saved-pill {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ok-fg);
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  line-height: 1.3;
}

.sv-shot-body {
  padding: 11px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sv-shot-step1 {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.sv-shot-media {
  position: relative;
  border-radius: 7px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.sv-shot-media.is-landscape,
.sv-shot-media.is-photo,
.sv-shot-media.is-cc,
.sv-shot-media.is-wave {
  width: 76px;
  height: 54px;
}
.sv-shot-media.is-vertical {
  width: 48px;
  height: 66px;
}
.sv-shot-media.is-stack {
  width: 64px;
  height: 58px;
}
.sv-shot-stack-card {
  width: 34px;
  height: 36px;
  border-radius: 5px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  box-shadow: 5px -4px 0 -1px var(--bg-surface), 5px -4px 0 0 var(--border-strong);
}

.sv-shot-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1.2;
}

.sv-shot-play {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sv-shot-play svg {
  width: 11px;
  height: 11px;
  margin-left: 1px;
}

.sv-shot-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}
.sv-shot-bars span {
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
}
.sv-shot-bars span:nth-child(1) { height: 9px; }
.sv-shot-bars span:nth-child(2) { height: 18px; }
.sv-shot-bars span:nth-child(3) { height: 22px; }
.sv-shot-bars span:nth-child(4) { height: 14px; }
.sv-shot-bars span:nth-child(5) { height: 19px; }

.sv-shot-cc-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.56rem;
  font-weight: 800;
}
.sv-shot-cc-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 48px;
  margin-top: 8px;
}
.sv-shot-cc-lines span {
  height: 4px;
  border-radius: 2px;
  background: var(--border-strong);
}
.sv-shot-cc-lines span:last-child {
  width: 72%;
  background: var(--accent);
}

.sv-shot-share-box {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sv-shot-url-line {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sv-shot-copy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
}
.sv-shot-copied {
  margin-left: auto;
  font-style: normal;
  font-size: 0.62rem;
  color: var(--ok-fg);
  font-weight: 800;
}

.sv-shot-step2 {
  gap: 8px;
}
.sv-shot-cmdbar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 6px;
  border-radius: 7px;
  background: var(--bg-surface);
  border: 1.5px solid var(--accent);
}
.sv-shot-plat-badge {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sv-shot-plat-badge svg {
  width: 11px;
  height: 11px;
}
.sv-shot-input-txt {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.66rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-shot-paste-chip {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  flex-shrink: 0;
}
.sv-shot-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.sv-shot-ready-pill {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ok-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-shot-submit-pill {
  height: 23px;
  padding: 0 9px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.67rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.sv-shot-step3 {
  gap: 6px;
}
.sv-shot-qrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 30px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}
.sv-shot-qrow.is-best {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}
.sv-shot-qleft {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.sv-shot-qleft .ext-badge {
  min-width: 28px;
  height: 17px;
  font-size: 0.58rem;
  padding: 0 4px;
}
.sv-shot-qtitle {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-shot-qbest {
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1.2;
  flex-shrink: 0;
}
.sv-shot-qdl {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 21px;
  padding: 0 7px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--text-main);
  font-size: 0.64rem;
  font-weight: 700;
  flex-shrink: 0;
}
.sv-shot-qdl.is-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

.sv-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.sv-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1;
}

.sv-step-plat-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sv-step-card h2,
.sv-step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.sv-step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 6 Feature Cards */
.sv-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sv-feature-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.sv-feature-ico {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.sv-feature-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.sv-feature-card p {
  font-size: 0.89rem;
  color: var(--text-muted);
}

/* Two-Column Content, Prose, Specs & Tables */
.sv-two-col-seo {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.sv-prose-card,
.sv-specs-card,
.sv-compare-card,
.sv-device-card,
.sv-matrix-card,
.sv-silo-box {
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.sv-prose-card h2,
.sv-specs-card h2,
.sv-compare-card h2,
.sv-device-card h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.sv-prose-card h3,
.sv-specs-card h3,
.sv-matrix-card h3 {
  font-size: 1.05rem;
  margin-top: 18px;
  margin-bottom: 10px;
}
.sv-specs-card h3:first-child,
.sv-matrix-card h3:first-child {
  margin-top: 0;
}

.sv-muted-p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sv-code-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sv-code-list li code {
  display: block;
  padding: 7px 10px;
  overflow-x: auto;
  white-space: nowrap;
}

.sv-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sv-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.89rem;
  color: var(--text-body);
}
.sv-check-list li svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.sv-ordered-list {
  margin: 0 0 18px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
}

.sv-device-mini {
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.sv-device-mini h4 {
  font-size: 0.86rem;
  margin-bottom: 4px;
}
.sv-device-mini p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Comparison & Spec Matrix Tables */
.sv-matrix-card {
  margin-top: 20px;
}
.sv-matrix-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.sv-table-wrap,
.sv-matrix-scroll {
  overflow-x: auto;
}

.sv-compare-table,
.sv-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.sv-compare-table th,
.sv-compare-table td,
.sv-matrix-table th,
.sv-matrix-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.sv-compare-table th,
.sv-matrix-table th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-alt);
}

.sv-yes {
  font-weight: 700;
  color: var(--ok-fg);
}
.sv-no {
  color: var(--text-muted);
}

.is-recommended-row td {
  background: var(--accent-soft);
}

/* Device Rows */
.sv-device-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sv-device-row {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.sv-device-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.sv-device-badge {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
}
.sv-device-row strong {
  font-size: 0.9rem;
  color: var(--text-main);
}
.sv-device-row p {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.sv-faq-group + .sv-faq-group {
  margin-top: 28px;
}
.sv-faq-group-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.sv-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sv-faq-item {
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.sv-faq-item[open] {
  border-color: var(--border-strong);
}

.sv-faq-item summary {
  list-style: none;
  padding: 15px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sv-faq-item summary::-webkit-details-marker {
  display: none;
}
.sv-faq-item summary::after {
  content: '+';
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
}
.sv-faq-item[open] summary::after {
  content: '−';
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

.sv-faq-answer {
  padding: 0 18px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Platform Silo & Related Tool Cards */
.sv-silo-box-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.sv-silo-box-head h2 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}
.sv-silo-box-head p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sv-silo-pills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.sv-silo-pill {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sv-silo-pill:hover {
  border-color: var(--accent);
}
.sv-silo-pill.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.sv-silo-pill-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}
.sv-silo-pill strong {
  font-size: 0.86rem;
  color: var(--text-main);
}

.sv-related-grid,
.sv-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sv-related-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sv-related-card:hover {
  border-color: var(--accent);
}

.sv-related-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.sv-related-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.sv-related-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
}
.sv-related-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Inner Pages: Directory, About, Contact, Legal & Sitemap
   ========================================================================== */

.sv-page-hero {
  padding: 32px 0 28px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.sv-page-hero h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.sv-page-hero p {
  color: var(--text-muted);
  max-width: 720px;
  font-size: 0.98rem;
}

.sv-dir-controls {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sv-dir-search-box {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 640px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0 12px;
}
.sv-dir-search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.sv-dir-search-ico {
  color: var(--text-muted);
  flex-shrink: 0;
}

.sv-dir-search {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 10px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-size: 16px;
}

.sv-dir-count-pill {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sv-dir-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sv-dir-tab {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.sv-dir-tab:hover {
  border-color: var(--border-strong);
  color: var(--text-main);
}
.sv-dir-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

.sv-empty-state {
  padding: 32px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  text-align: center;
}
.sv-empty-state strong {
  display: block;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 6px;
}
.sv-empty-state p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Flat Action Buttons */
.sv-btn-flat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.sv-btn-flat:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.sv-btn-flat.is-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
.sv-btn-flat.is-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-fg);
}

.sv-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

/* Metrics Strip (About) */
.sv-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sv-metric-box {
  padding: 18px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  text-align: center;
}
.sv-metric-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}
.sv-metric-box span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Contact Form Inputs */
.sv-contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sv-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.sv-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sv-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}
.sv-text-input,
.sv-select,
.sv-textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 16px;
  outline: none;
}
.sv-text-input,
.sv-select {
  height: 44px;
  padding-top: 0;
  padding-bottom: 0;
}
.sv-text-input:focus,
.sv-select:focus,
.sv-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* HTML Sitemap List */
.sv-sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
}
.sv-sitemap-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.sv-sitemap-list li a {
  font-weight: 600;
  color: var(--text-body);
}
.sv-sitemap-list li a:hover {
  color: var(--accent);
}
.sv-sitemap-list li span {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   Modals: Phone QR & Full-Screen Lightbox
   ========================================================================== */

.sv-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(9, 13, 22, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sv-modal-card {
  width: 100%;
  max-width: 380px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
}

.sv-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.sv-modal-head h3 {
  font-size: 1.05rem;
  margin: 0;
}
.sv-modal-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.sv-qr-canvas {
  width: 200px;
  height: 200px;
  margin: 0 auto 14px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sv-qr-url-preview {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.sv4-lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(5, 8, 15, 0.94);
  display: flex;
  flex-direction: column;
}
.sv4-lightbox-bar {
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}
.sv4-lightbox-title {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv4-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sv4-lb-dl-btn {
  height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  background: #2563EB;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.sv4-lb-close-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sv4-lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: auto;
}
.sv4-lb-media {
  max-width: 100%;
  max-height: calc(100vh - 96px);
  border-radius: var(--radius-sm);
  object-fit: contain;
}

/* ==========================================================================
   Flat 5-Column Footer
   ========================================================================== */

.sv-footer {
  padding: 52px 0 32px;
  background: var(--bg-alt);
}

.sv-footer-grid {
  display: grid;
  grid-template-columns: 1.55fr repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.sv-footer-brand-col .sv-brand-mark {
  color: #2563EB;
}

.sv-footer-about {
  margin-top: 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.sv-footer-status {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-body);
}

.sv-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16A34A;
}

.sv-footer-col h3 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 12px;
}

.sv-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sv-footer-col a {
  font-size: 0.83rem;
  color: var(--text-muted);
  font-weight: 500;
}
.sv-footer-col a:hover {
  color: var(--text-main);
}

.sv-footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sv-copyright {
  font-size: 0.79rem;
  color: var(--text-muted);
  margin: 0;
}

.sv-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sv-footer-badges span {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints: Laptop (1024px), Tablet (768px) & Mobile (680px / 375px)
   ========================================================================== */

@media (max-width: 1060px) {
  .sv-nav {
    display: none;
  }
  .sv-mobile-menu-btn {
    display: inline-flex;
  }
  .sv-hub-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sv-related-grid,
  .sv-directory-grid,
  .sv-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sv-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sv-footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .sv-steps-grid,
  .sv-two-col-seo {
    grid-template-columns: minmax(0, 1fr);
  }
  .sv4-video-studio.is-landscape-layout .sv4-video-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "player"
      "head"
      "actions";
  }
  .sv4-video-studio.is-landscape-layout .sv4-player-box.is-landscape-player {
    max-height: 220px;
  }
  /* Compact Horizontal Reel / Short / TikTok Header on Tablet & Mobile */
  .sv4-video-studio.is-vertical-layout:not(.is-playing-inline) .sv4-video-grid {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "player head"
      "actions actions";
    column-gap: 12px;
    row-gap: 11px;
    align-items: center;
  }
  .sv4-video-studio.is-vertical-layout:not(.is-playing-inline) .sv4-player-box.is-portrait-player {
    max-height: 152px;
  }
  .sv4-video-studio.is-vertical-layout:not(.is-playing-inline) .sv4-play-circle {
    width: 32px;
    height: 32px;
  }
  .sv4-video-studio.is-vertical-layout:not(.is-playing-inline) .sv4-play-circle svg {
    width: 14px;
    height: 14px;
  }
  .sv4-video-studio.is-vertical-layout.is-playing-inline .sv4-video-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "player"
      "head"
      "actions";
  }
  .sv4-video-studio.is-vertical-layout.is-playing-inline .sv4-player-box.is-portrait-player {
    max-height: 340px;
  }
  .sv4-cover-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .sv4-cover-stage {
    max-height: 200px;
    min-height: 120px;
  }
  .sv4-cover-hero-img {
    max-height: 196px;
  }
  .sv4-qcard-list.is-two-col-desktop {
    grid-template-columns: minmax(0, 1fr);
  }
  .ig-slides-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sv-metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .sv-container {
    padding: 0 15px;
  }
  .sv-brand-pill {
    display: none;
  }
  .sv-hero {
    padding: 28px 0 26px;
  }
  .sv-hero-tool {
    padding-top: 18px;
  }
  .sv-hero-head {
    margin-bottom: 18px;
  }

  /* Clean Wrapped Sibling Pill Grid on Mobile (0px overflow, all icons & tools visible) */
  .sv-sibling-bar-wrap {
    margin-top: 14px;
  }
  .sv-sibling-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 5px;
  }
  .sv-sibling-tab {
    height: 31px;
    padding: 0 9px;
    font-size: 0.76rem;
    gap: 5px;
  }

  /* Ergonomic 2-Row Flat Input Command Bar on Mobile */
  .sv-command-bar {
    flex-direction: column;
    padding: 0;
    border: none;
    background: transparent;
    gap: 8px;
  }
  .sv-command-bar:focus-within {
    box-shadow: none;
  }
  .sv-input-box {
    padding: 5px 6px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-strong);
    border-radius: 12px;
    gap: 8px;
  }
  .sv-input-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  .sv-detected-badge {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }
  .sv-url-input {
    height: 40px;
    font-size: 16px;
  }
  .sv-paste-btn {
    height: 34px;
    padding: 0 10px;
    font-size: 0.78rem;
  }
  .sv-submit-btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    font-size: 0.96rem;
  }

  /* Horizontal Sample Strip on Mobile */
  .sv-sample-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .sv-sample-bar::-webkit-scrollbar {
    display: none;
  }
  .sv-sample-pills {
    flex-wrap: nowrap;
  }

  .sv-platform-dock {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .sv-platform-dock::-webkit-scrollbar {
    display: none;
  }
  .sv-dock-chip {
    flex-shrink: 0;
  }

  .sv-hub-matrix,
  .sv-related-grid,
  .sv-directory-grid,
  .sv-features-grid,
  .sv-form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .ig-slides-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .ig-slide-thumb-wrap,
  .ig-slide-thumb-wrap.is-vertical-slide,
  .ig-slides-grid.is-stories-grid .ig-slide-thumb-wrap {
    max-height: 196px;
  }

  /* Studio Card Compact Mobile Polish */
  .sv4-studio-card {
    padding: 12px;
    border-radius: 12px;
  }
  .sv4-title {
    font-size: 0.91rem;
  }
  .sv4-meta-line {
    font-size: 0.74rem;
  }
  .sv4-video-studio.is-landscape-layout .sv4-player-box.is-landscape-player {
    max-height: 180px;
  }
  .sv4-video-studio.is-vertical-layout:not(.is-playing-inline) .sv4-video-grid {
    grid-template-columns: 84px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 10px;
  }
  .sv4-video-studio.is-vertical-layout:not(.is-playing-inline) .sv4-player-box.is-portrait-player {
    max-height: 136px;
  }
  .sv4-cover-stage {
    max-height: 178px;
    min-height: 110px;
  }
  .sv4-cover-hero-img {
    max-height: 174px;
  }
  .sv4-audio-cover-wrap {
    width: 52px;
    height: 52px;
  }
  .sv4-sub-head {
    align-items: center;
    gap: 10px;
  }
  .sv4-sub-thumb {
    width: 78px;
  }
  .sv4-dub-bar {
    flex-wrap: wrap;
    padding: 6px 8px;
  }
  .sv4-dub-select {
    flex: 1 1 160px;
  }
  .sv4-qcard-list {
    gap: 5px;
  }
  .sv4-qcard {
    min-height: 38px;
    padding: 4px 6px 4px 8px;
    gap: 6px;
  }
  .sv4-qcard-badges {
    flex-wrap: nowrap;
    gap: 5px;
  }
  .ext-badge {
    min-width: 31px;
    height: 18px;
    font-size: 0.62rem;
    padding: 0 4px;
  }
  .sv4-qcard-title {
    font-size: 0.77rem;
  }
  .sv4-best-pill,
  .sv4-muted-pill,
  .sv4-hdr-pill {
    height: 16px;
    padding: 0 5px;
    font-size: 0.59rem;
  }
  .sv4-qcard-right {
    gap: 5px;
  }
  .sv4-qcard-size {
    font-size: 0.67rem;
  }
  .sv4-dl-btn {
    height: 27px;
    padding: 0 8px;
    font-size: 0.71rem;
    gap: 3px;
    border-radius: 6px;
  }
  .sv4-dl-btn svg {
    width: 12px;
    height: 12px;
  }

  .sv4-sub-row .sv4-sub-btn-group {
    gap: 4px;
  }
  .sv4-mini-btn {
    height: 26px;
    padding: 0 8px;
    font-size: 0.7rem;
  }

  .sv-prose-card,
  .sv-specs-card,
  .sv-compare-card,
  .sv-device-card,
  .sv-matrix-card,
  .sv-silo-box {
    padding: 18px 15px;
  }

  .sv-prose-card h2,
  .sv-specs-card h2,
  .sv-compare-card h2,
  .sv-device-card h2 {
    font-size: 1.12rem;
    line-height: 1.28;
  }
  .sv-prose-card h3,
  .sv-specs-card h3,
  .sv-matrix-card h3 {
    font-size: 0.98rem;
  }
  .sv-prose-card p,
  .sv-ordered-list,
  .sv-check-list li {
    font-size: 0.88rem;
    line-height: 1.62;
    overflow-wrap: anywhere;
  }

  .sv-code-list li code {
    font-size: 0.74rem;
    padding: 7px 9px;
    border-radius: 6px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
  }

  .sv-toc-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 10px;
    padding-bottom: 2px;
    font-size: 0.78rem;
  }
  .sv-toc-bar::-webkit-scrollbar {
    display: none;
  }
  .sv-toc-bar span,
  .sv-toc-bar a {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .sv-legal-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .sv-legal-tabs::-webkit-scrollbar {
    display: none;
  }
  .sv-legal-tabs .sv-dir-tab {
    flex-shrink: 0;
    height: 32px;
    padding: 0 11px;
    font-size: 0.78rem;
  }

  .sv-matrix-table th,
  .sv-matrix-table td,
  .sv-compare-table th,
  .sv-compare-table td {
    padding: 8px 9px;
    font-size: 0.79rem;
  }

  .sv-silo-box-head {
    align-items: flex-start;
  }
  .sv-silo-box-head h2 {
    font-size: 1.04rem;
  }
  .sv-silo-pills {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .sv-faq-item summary {
    padding: 13px 14px;
    font-size: 0.89rem;
  }
  .sv-faq-answer {
    padding: 0 14px 14px;
    font-size: 0.85rem;
  }

  .sv-page-hero {
    padding: 24px 0 22px;
  }
  .sv-page-hero p {
    font-size: 0.9rem;
  }

  .sv-section {
    padding: 36px 0;
  }

  .sv-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

.sv-legal-summary {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text-main);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 22px;
}

.sv-legal-prose h2 {
  margin-top: 24px;
}
.sv-legal-prose h2:first-of-type {
  margin-top: 0;
}

@media (max-width: 1060px) {
  .sv-header-tools-pill {
    display: none;
  }
}

@media (max-width: 345px) {
  .sv4-qcard-size {
    display: none;
  }
  .sv-mobile-plat-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   SaveKora v6.0 Brand Wordmark Accent & Live On-Button Download Telemetry
   ========================================================================== */

.sv-brand-kora {
  color: inherit;
}

@keyframes skTurboSweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.is-sk-downloading {
  position: relative !important;
  overflow: hidden !important;
  color: #FFFFFF !important;
  border-color: transparent !important;
  background-color: #1E1B4B !important;
  background-image: linear-gradient(
    90deg,
    #4F46E5 0%,
    #7C3AED var(--sk-pct, 8%),
    rgba(30, 27, 75, 0.92) var(--sk-pct, 8%),
    rgba(30, 27, 75, 0.92) 100%
  ) !important;
  transition: background-image 0.18s linear;
  font-variant-numeric: tabular-nums;
}

.is-sk-downloading.is-sk-indeterminate {
  background-image: linear-gradient(
    110deg,
    #4338CA 0%,
    #6D28D9 35%,
    #0891B2 52%,
    #6D28D9 68%,
    #4338CA 100%
  ) !important;
  background-size: 220% 100% !important;
  animation: skTurboSweep 1.35s linear infinite;
}

.is-sk-completed {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #FFFFFF !important;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   SaveKora v6.1 — Complete 76-Tool Platform Crawl Matrix (Home Silo Grid)
   ========================================================================== */
.sv-home-silo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 14px;
}

.sv-home-silo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.sv-home-silo-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-sm);
}

.sv-home-silo-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sv-home-silo-ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--bg-subtle);
  color: var(--plat-color, var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sv-home-silo-ico svg {
  width: 15px;
  height: 15px;
}

.sv-home-silo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sv-home-silo-links a {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.sv-home-silo-links a:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}


