:root {
  color-scheme: dark light;
  --vc-bg: #0e0e0e;
  --vc-surface: #141414;
  --vc-surface-2: #1d1e23;
  --vc-surface-3: #24262d;
  --vc-control: #282a31;
  --vc-control-soft: rgba(255, 255, 255, 0.1);
  --vc-control-hover: rgba(255, 255, 255, 0.07);
  --vc-border: #24262d;
  --vc-border-soft: rgba(255, 255, 255, 0.08);
  --vc-border-strong: rgba(255, 255, 255, 0.14);
  --vc-text: #f5f5f5;
  --vc-muted: rgba(255, 255, 255, 0.72);
  --vc-subtle: rgba(255, 255, 255, 0.45);
  --vc-accent: #626aef;
  --vc-accent-hover: #8e62ff;
  --vc-accent-deep: #4b2ea5;
  --vc-accent-soft: rgba(98, 106, 239, 0.12);
  --vc-success: #67c23a;
  --vc-warning: #e6a23c;
  --vc-danger: #e47470;
  --vc-radius-sm: 4px;
  --vc-radius: 6px;
  --vc-radius-lg: 8px;
  --vc-header: 52px;
  --vc-sidebar: 260px;
  --vc-transition-fast: 160ms ease;
  --vc-transition: 200ms ease-in-out;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

:root[data-theme="light"] {
  color-scheme: light;
  --vc-bg: #ffffff;
  --vc-surface: #f7f7f8;
  --vc-surface-2: #f0f1f4;
  --vc-surface-3: #e7e8ed;
  --vc-control: #e9eaf0;
  --vc-control-soft: rgba(20, 22, 28, 0.08);
  --vc-control-hover: rgba(20, 22, 28, 0.06);
  --vc-border: #dfe1e6;
  --vc-border-soft: rgba(20, 22, 28, 0.09);
  --vc-border-strong: rgba(20, 22, 28, 0.18);
  --vc-text: #17181c;
  --vc-muted: rgba(23, 24, 28, 0.72);
  --vc-subtle: rgba(23, 24, 28, 0.5);
  --vc-accent: #5b63dc;
  --vc-accent-hover: #7148de;
  --vc-accent-deep: #5146c7;
  --vc-accent-soft: rgba(91, 99, 220, 0.11);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --vc-bg: #ffffff;
    --vc-surface: #f7f7f8;
    --vc-surface-2: #f0f1f4;
    --vc-surface-3: #e7e8ed;
    --vc-control: #e9eaf0;
    --vc-control-soft: rgba(20, 22, 28, 0.08);
    --vc-control-hover: rgba(20, 22, 28, 0.06);
    --vc-border: #dfe1e6;
    --vc-border-soft: rgba(20, 22, 28, 0.09);
    --vc-border-strong: rgba(20, 22, 28, 0.18);
    --vc-text: #17181c;
    --vc-muted: rgba(23, 24, 28, 0.72);
    --vc-subtle: rgba(23, 24, 28, 0.5);
    --vc-accent: #5b63dc;
    --vc-accent-hover: #7148de;
    --vc-accent-deep: #5146c7;
    --vc-accent-soft: rgba(91, 99, 220, 0.11);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--vc-bg);
}

body.vc-shell {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--vc-bg);
  color: var(--vc-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

a,
button,
input,
label {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
label:focus-within {
  outline: 2px solid var(--vc-accent);
  outline-offset: 2px;
}

.vc-hidden {
  display: none !important;
}

.vc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Shared application shell */
.vc-layout {
  display: flex;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.vc-sidebar {
  width: var(--vc-sidebar);
  flex: 0 0 var(--vc-sidebar);
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid var(--vc-border);
  background: var(--vc-surface);
  padding: 0 10px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--vc-control) transparent;
  transition: width var(--vc-transition), flex-basis var(--vc-transition);
}

.vc-sidebar-brand {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  height: var(--vc-header);
  align-items: center;
  gap: 9px;
  margin: 0 -10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--vc-border);
  background: var(--vc-surface);
  color: var(--vc-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.vc-sidebar-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: filter var(--vc-transition-fast);
}

:root[data-theme="dark"] .vc-sidebar-brand img {
  filter: invert(1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .vc-sidebar-brand img {
    filter: invert(1);
  }
}

.vc-sidebar-search {
  position: sticky;
  z-index: 2;
  top: var(--vc-header);
  padding: 16px 0 6px;
  background: var(--vc-surface);
}

.vc-sidebar-search::before,
.vc-toolbar-search::before {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 14px;
  height: 14px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
  color: var(--vc-subtle);
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
}

.vc-sidebar-search::after,
.vc-toolbar-search::after {
  position: absolute;
  width: 6px;
  height: 1.8px;
  background: var(--vc-subtle);
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
  transform-origin: left center;
}

.vc-sidebar-search::after {
  top: 34px;
  left: 23px;
}

.vc-sidebar-search input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
  background: var(--vc-bg);
  color: var(--vc-text);
  font-size: 13px;
  padding: 0 10px 0 34px;
  transition: border-color var(--vc-transition-fast), background var(--vc-transition-fast);
}

.vc-sidebar-search input:hover {
  border-color: var(--vc-border-strong);
}

.vc-sidebar-search input:focus {
  border-color: color-mix(in srgb, var(--vc-accent) 58%, var(--vc-border));
  outline: none;
}

input::placeholder {
  color: var(--vc-subtle);
}

.vc-sidebar-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 8px;
}

.vc-sidebar-group + .vc-sidebar-group {
  margin-top: 13px;
}

.vc-sidebar-group-title {
  height: 24px;
  padding: 3px 10px;
  color: var(--vc-subtle);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.vc-sidebar-link {
  position: relative;
  display: flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--vc-radius);
  color: var(--vc-muted);
  font-size: 13px;
  gap: 9px;
  padding: 7px 10px 7px 26px;
  text-decoration: none;
  transition: color var(--vc-transition-fast), background-color var(--vc-transition-fast);
}

.vc-sidebar-link-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
}

.vc-sidebar-link-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.vc-sidebar-link-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-sidebar-link::before {
  position: absolute;
  top: -3px;
  bottom: 18px;
  left: 14px;
  width: 1px;
  background: color-mix(in srgb, var(--vc-subtle) 32%, transparent);
  content: "";
}

.vc-sidebar-link::after {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 6px;
  height: 1px;
  background: color-mix(in srgb, var(--vc-subtle) 32%, transparent);
  content: "";
}

.vc-sidebar-link:hover,
.vc-sidebar-link.vc-active {
  background: var(--vc-control-hover);
  color: var(--vc-text);
}

.vc-sidebar-link.vc-active {
  box-shadow: inset 3px 0 0 var(--vc-accent);
}

.vc-sidebar-link.vc-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.vc-content {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.vc-topbar {
  z-index: 10;
  display: flex;
  height: var(--vc-header);
  min-height: var(--vc-header);
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--vc-border);
  background: color-mix(in srgb, var(--vc-bg) 94%, transparent);
  color: var(--vc-subtle);
  font-size: 13px;
  padding: 0 24px;
}

.vc-topbar a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-radius: var(--vc-radius);
  color: var(--vc-muted);
  padding: 0 8px;
  text-decoration: none;
}

.vc-topbar a:hover {
  background: var(--vc-control-hover);
  color: var(--vc-text);
}

.vc-topbar-sep {
  opacity: 0.45;
}

.vc-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.vc-topbar-api-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
  background: var(--vc-control-soft);
  color: var(--vc-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0 10px;
  text-decoration: none;
  transition: background var(--vc-transition-fast), color var(--vc-transition-fast), border-color var(--vc-transition-fast);
}

.vc-topbar-api-link:hover,
.vc-topbar-api-link.vc-active {
  border-color: color-mix(in srgb, var(--vc-accent) 45%, var(--vc-border));
  background: var(--vc-accent-soft);
  color: var(--vc-text);
}

.vc-theme-toggle {
  display: inline-flex;
  width: 36px;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  border: 1px solid transparent;
  border-radius: var(--vc-radius);
  background: var(--vc-control-soft);
  color: var(--vc-muted);
  cursor: pointer;
  padding: 0;
  transition: background var(--vc-transition-fast), color var(--vc-transition-fast), border-color var(--vc-transition-fast);
}

.vc-sidebar-toggle {
  display: inline-flex;
  width: 36px;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--vc-radius);
  background: transparent;
  color: var(--vc-muted);
  cursor: pointer;
  padding: 0;
  transition: background var(--vc-transition-fast), color var(--vc-transition-fast), border-color var(--vc-transition-fast);
}

.vc-sidebar-toggle:hover {
  border-color: var(--vc-border);
  background: var(--vc-control-hover);
  color: var(--vc-text);
}

.vc-sidebar-toggle svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.vc-theme-toggle:hover {
  border-color: var(--vc-border);
  background: var(--vc-control-hover);
  color: var(--vc-text);
}

.vc-theme-toggle svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.vc-sidebar > .vc-theme-toggle {
  display: none;
}

:root[data-sidebar-collapsed="true"] .vc-sidebar {
  width: 64px;
  flex-basis: 64px;
  padding-right: 9px;
  padding-left: 9px;
}

:root[data-sidebar-collapsed="true"] .vc-sidebar-brand {
  justify-content: center;
  margin-right: -9px;
  margin-left: -9px;
  padding: 0;
}

:root[data-sidebar-collapsed="true"] .vc-sidebar-brand span,
:root[data-sidebar-collapsed="true"] .vc-sidebar-group-title,
:root[data-sidebar-collapsed="true"] .vc-sidebar-link-label {
  display: none;
}

:root[data-sidebar-collapsed="true"] .vc-sidebar-search {
  width: 36px;
  margin-right: auto;
  margin-left: auto;
}

:root[data-sidebar-collapsed="true"] .vc-sidebar-search input {
  width: 36px;
  padding: 0;
  color: transparent;
  caret-color: transparent;
  cursor: pointer;
}

:root[data-sidebar-collapsed="true"] .vc-sidebar-search input::placeholder {
  color: transparent;
}

:root[data-sidebar-collapsed="true"] .vc-sidebar-group {
  gap: 4px;
  margin-top: 10px;
}

:root[data-sidebar-collapsed="true"] .vc-sidebar-link {
  width: 44px;
  min-height: 40px;
  justify-content: center;
  gap: 0;
  padding: 0;
}

:root[data-sidebar-collapsed="true"] .vc-sidebar-link::before,
:root[data-sidebar-collapsed="true"] .vc-sidebar-link::after {
  display: none;
}

.vc-main {
  width: 100%;
  max-width: 1180px;
  flex: 0 0 auto;
  padding: 32px 40px 64px;
}

.vc-content {
  overflow-x: hidden;
  overflow-y: auto;
}

.vc-content:has(.vc-tool-main) {
  overflow: hidden;
}

body.vc-shell:has(.vc-tool-main) {
  overflow: hidden;
}

/* Hub */
.vc-hero-kicker,
.vc-tool-kicker {
  margin: 0 0 8px;
  color: var(--vc-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vc-hero-title,
.vc-page-title {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.vc-hero-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.16;
}

.vc-hero-desc {
  max-width: 720px;
  margin: 0 0 8px;
  color: var(--vc-muted);
  font-size: 14px;
  line-height: 1.7;
}

.vc-hero-note {
  margin: 0 0 28px;
  color: var(--vc-subtle);
  font-size: 12px;
}

.vc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.vc-toolbar-search {
  position: relative;
  width: min(100%, 360px);
  flex: 1 1 240px;
}

.vc-toolbar-search::after {
  top: 24px;
  left: 24px;
}

.vc-toolbar-search input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
  background: var(--vc-surface);
  color: var(--vc-text);
  font-size: 13px;
  padding: 0 14px 0 36px;
  transition: border-color var(--vc-transition-fast), background var(--vc-transition-fast);
}

.vc-toolbar-search input:hover {
  border-color: var(--vc-border-strong);
}

.vc-toolbar-search input:focus {
  border-color: var(--vc-accent);
  background: var(--vc-bg);
  outline: none;
}

.vc-filters {
  display: flex;
  gap: 4px;
  margin-left: auto;
  padding: 3px;
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
  background: var(--vc-surface);
}

.vc-filter-btn {
  min-width: 48px;
  min-height: 36px;
  border: 0;
  border-radius: var(--vc-radius-sm);
  background: transparent;
  color: var(--vc-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 7px 13px;
  transition: background var(--vc-transition-fast), color var(--vc-transition-fast);
}

.vc-filter-btn:hover {
  background: var(--vc-control-hover);
  color: var(--vc-text);
}

.vc-filter-btn.vc-active,
.vc-filter-btn[aria-pressed="true"] {
  background: var(--vc-accent-deep);
  color: #fff;
}

.vc-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 28px;
}

.vc-tool-card {
  display: block;
  min-width: 0;
  color: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.vc-tool-card.vc-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.vc-tool-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
  background: var(--vc-surface-2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: border-color var(--vc-transition), transform var(--vc-transition), box-shadow var(--vc-transition);
}

.vc-tool-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.vc-tool-card:hover:not(.vc-disabled) .vc-tool-thumb {
  border-color: var(--vc-border-strong);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.vc-tool-card:hover:not(.vc-disabled) .vc-tool-thumb img {
  filter: brightness(1.06);
  transform: scale(1.018);
}

.vc-tool-body {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 13px 8px 0;
}

.vc-tool-body h2 {
  margin: 0 0 5px;
  color: var(--vc-text);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.vc-tool-body p {
  max-width: 34ch;
  margin: 0;
  color: var(--vc-muted);
  font-size: 12px;
  line-height: 1.65;
}

.vc-tool-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--vc-control-soft);
  color: var(--vc-muted);
  font-size: 10px;
  padding: 2px 8px;
}

.vc-tool-badge-live {
  background: rgba(103, 194, 58, 0.12);
  color: #95d475;
}

.vc-tool-badge-planned {
  background: rgba(230, 162, 60, 0.12);
  color: #eebe77;
}

:root[data-theme="light"] .vc-tool-badge-live {
  background: rgba(54, 132, 31, 0.1);
  color: #2f7d20;
}

:root[data-theme="light"] .vc-tool-badge-planned,
:root[data-theme="light"] .vc-stub-badge {
  background: rgba(153, 93, 11, 0.1);
  color: #8a560d;
}

.vc-empty {
  grid-column: 1 / -1;
  padding: 64px 24px;
  border: 1px dashed var(--vc-border-strong);
  border-radius: var(--vc-radius-lg);
  color: var(--vc-muted);
  text-align: center;
}

/* Tool-page primitives */
.vc-main.vc-tool-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 16px 20px 20px;
  overflow: hidden;
}

.vc-tool-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 0;
}

.vc-tool-main > .vc-workflow {
  flex: 1 1 auto;
  min-height: 0;
}

.vc-tool-hero {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.vc-page-title {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
}

.vc-page-desc {
  max-width: 650px;
  margin: 0 auto;
  color: var(--vc-muted);
  font-size: 14px;
  line-height: 1.7;
}

.vc-tool-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.vc-tool-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--vc-border);
  border-radius: 999px;
  background: var(--vc-surface);
  color: var(--vc-muted);
  font-size: 11px;
  padding: 4px 10px;
}

.vc-work-card {
  overflow: hidden;
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius-lg);
  background: var(--vc-surface);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.vc-work-card-inner {
  padding: 24px;
}

.vc-work-card-muted {
  background: color-mix(in srgb, var(--vc-surface) 90%, var(--vc-bg));
}

.vc-hint {
  margin: 14px 2px 0;
  color: var(--vc-subtle);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.artplayer-app {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 75vh;
  overflow: hidden;
  background: #000;
}

.vc-player-card .artplayer-app {
  width: auto;
  max-width: 100%;
  aspect-ratio: unset;
  margin: 0 auto;
  border-radius: calc(var(--vc-radius-lg) - 1px);
}

#detect-player-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.vc-stub {
  padding: 44px 28px;
  border: 1px dashed var(--vc-border-strong);
  border-radius: var(--vc-radius-lg);
  color: var(--vc-muted);
  text-align: center;
}

.vc-stub h2 {
  margin: 14px 0 6px;
  color: var(--vc-text);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 20px;
}

.vc-stub p {
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.vc-stub-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: rgba(230, 162, 60, 0.12);
  color: #eebe77;
  font-size: 11px;
  padding: 4px 11px;
}

.vc-upload-zone {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 280px;
  aspect-ratio: 16 / 9;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed var(--vc-border-strong);
  border-radius: var(--vc-radius-lg);
  background: linear-gradient(145deg, var(--vc-surface-2), var(--vc-bg));
  cursor: pointer;
  transition: border-color var(--vc-transition), background var(--vc-transition);
}

.vc-upload-zone:hover,
.vc-upload-zone.vc-dragover {
  border-color: var(--vc-accent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--vc-accent) 11%, var(--vc-surface-2)), var(--vc-bg));
}

.vc-upload-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  color: var(--vc-muted);
  padding: 28px;
  text-align: center;
}

.vc-upload-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--vc-accent) 34%, transparent);
  border-radius: 50%;
  background: var(--vc-accent-soft);
  color: var(--vc-accent);
}

.vc-upload-title {
  margin-bottom: 4px;
  color: var(--vc-text);
  font-size: 15px;
  font-weight: 600;
}

.vc-upload-copy {
  color: var(--vc-subtle);
  font-size: 12px;
}

.vc-media-frame {
  overflow: hidden;
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius-lg);
  background: var(--vc-surface-2);
}

.vc-import-stage.vc-stage--flush > .vc-stage-body {
  padding: 12px;
}

.vc-media-frame .vc-upload-zone {
  min-height: 220px;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--vc-border-strong);
  border-radius: calc(var(--vc-radius-lg) - 4px);
  background: linear-gradient(145deg, var(--vc-surface-2), var(--vc-bg));
}

.vc-media-frame .vc-upload-zone:hover,
.vc-media-frame .vc-upload-zone.vc-dragover {
  border-color: var(--vc-accent);
}

.vc-media-preview,
.vc-media-player {
  width: 100%;
}

.vc-media-preview video,
.vc-media-frame .artplayer-app {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  background: #090909;
}

.vc-media-preview-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--vc-border);
  background: var(--vc-surface);
  color: var(--vc-muted);
  font-size: 12px;
}

.vc-media-player {
  display: flex;
  justify-content: center;
  padding: 0;
  background: #090909;
}

.vc-media-player .artplayer-app {
  width: auto;
  max-width: 100%;
  aspect-ratio: unset;
  margin: 0 auto;
  border-radius: 0;
}

.vc-option-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--vc-text);
  cursor: pointer;
  font-size: 13px;
}

.vc-option-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--vc-accent);
}

.vc-sample-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  border: 1px solid var(--vc-border-strong);
  border-radius: var(--vc-radius);
  background: var(--vc-control);
  color: var(--vc-text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
}

.vc-sample-btn:hover {
  background: var(--vc-surface-3);
  border-color: var(--vc-accent);
}

.vc-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 22px 0;
}

.vc-form-label {
  display: block;
  margin: 0 0 3px;
  color: var(--vc-text);
  font-size: 13px;
  font-weight: 600;
}

.vc-form-help {
  margin: 0;
  color: var(--vc-subtle);
  font-size: 11px;
}

.vc-segmented {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
  background: var(--vc-bg);
}

.vc-segmented button {
  min-width: 60px;
  min-height: 44px;
  border: 0;
  border-radius: var(--vc-radius-sm);
  background: transparent;
  color: var(--vc-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 7px 11px;
}

.vc-segmented button:hover {
  background: var(--vc-control-hover);
  color: var(--vc-text);
}

.vc-segmented button.vc-active,
.vc-segmented button[aria-pressed="true"] {
  background: var(--vc-accent-deep);
  color: #fff;
}

.vc-btn {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--vc-radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  transition: background var(--vc-transition-fast), color var(--vc-transition-fast), border-color var(--vc-transition-fast);
}

.vc-btn-primary {
  background: var(--vc-accent-deep);
  color: #fff;
}

.vc-btn-primary:hover:not(:disabled) {
  background: var(--vc-accent);
}

.vc-btn-secondary {
  border-color: var(--vc-border);
  background: var(--vc-surface-2);
  color: var(--vc-text);
}

.vc-btn-secondary:hover:not(:disabled) {
  border-color: var(--vc-border-strong);
  background: var(--vc-surface-3);
}

.vc-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.vc-btn-block {
  width: 100%;
}

.vc-progress-fill {
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 0;
  width: 0;
  background: color-mix(in srgb, var(--vc-success) 75%, var(--vc-accent-deep));
  transition: width 200ms ease-out;
}

.vc-btn-label {
  position: relative;
  z-index: 1;
}

.vc-result {
  border-top: 1px solid var(--vc-border);
  background: var(--vc-bg);
  padding: 24px;
}

.vc-result-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--vc-text);
  font-size: 13px;
  font-weight: 600;
}

.vc-comparison {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius-lg);
  background: #090909;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.vc-comparison video {
  display: block;
  width: 100%;
  height: auto;
  background: #090909;
  object-fit: contain;
}

.vc-comparison-original {
  position: absolute;
  inset: 0;
  height: 100% !important;
}

.vc-comparison-handle {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  display: flex;
  width: 44px;
  height: 100%;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  transform: translateX(-50%);
  touch-action: none;
}

.vc-comparison-handle::before {
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  content: "";
}

.vc-comparison-knob {
  position: absolute;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--vc-border-strong);
  border-radius: 50%;
  background: var(--vc-surface-2);
  color: var(--vc-text);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.vc-comparison-labels {
  position: absolute;
  z-index: 8;
  top: 12px;
  right: 12px;
  left: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.vc-comparison-label {
  border: 1px solid var(--vc-border-soft);
  border-radius: var(--vc-radius-sm);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
}

.vc-comparison-play {
  position: absolute;
  z-index: 20;
  bottom: 12px;
  left: 12px;
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--vc-border-soft);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
}

.vc-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.vc-stat {
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
  background: var(--vc-surface);
  padding: 12px;
  text-align: center;
}

.vc-stat-label {
  margin-bottom: 3px;
  color: var(--vc-subtle);
  font-size: 11px;
}

.vc-stat-value {
  color: var(--vc-text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.vc-actions {
  display: flex;
  gap: 10px;
}

.vc-actions > * {
  flex: 1 1 0;
}

.vc-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.vc-feature {
  min-width: 0;
  border: 1px solid var(--vc-border);
  border-radius: var(--vc-radius);
  background: var(--vc-surface);
  padding: 16px 12px;
  text-align: center;
}

.vc-feature-icon {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 9px;
  border-radius: 50%;
  background: var(--vc-accent-soft);
  color: var(--vc-accent);
}

.vc-feature h3 {
  margin: 0 0 3px;
  color: var(--vc-text);
  font-size: 12px;
}

.vc-feature p {
  margin: 0;
  color: var(--vc-subtle);
  font-size: 11px;
}

@media (max-width: 1024px) {
  .vc-main {
    padding-right: 28px;
    padding-left: 28px;
  }

  .vc-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .vc-layout {
    height: auto;
    min-height: 100dvh;
    flex-direction: column;
    overflow: visible;
  }

  .vc-sidebar {
    position: sticky;
    z-index: 30;
    top: 0;
    display: grid;
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 42%) 44px;
    gap: 8px;
    align-items: center;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--vc-border);
    padding: 0 12px;
  }

  :root[data-sidebar-collapsed="true"] .vc-sidebar {
    width: 100%;
    flex-basis: auto;
    padding: 0 12px;
  }

  :root[data-sidebar-collapsed="true"] .vc-sidebar-brand {
    justify-content: flex-start;
    margin: 0;
    padding: 0;
  }

  :root[data-sidebar-collapsed="true"] .vc-sidebar-brand span {
    display: inline;
  }

  .vc-sidebar-brand {
    position: static;
    height: var(--vc-header);
    margin: 0;
    border-bottom: 0;
    padding: 0;
  }

  .vc-sidebar-search {
    position: relative;
    top: auto;
    padding: 0;
  }

  .vc-sidebar-search::after {
    top: 22px;
  }

  .vc-sidebar-group {
    display: none;
  }

  .vc-sidebar [data-vc-sidebar-tools] {
    display: none;
  }

  .vc-sidebar > .vc-theme-toggle {
    display: inline-flex;
    margin-left: 0;
  }

  .vc-sidebar-toggle {
    display: none;
  }

  .vc-content {
    overflow: visible;
  }

  .vc-topbar {
    display: none;
  }

  .vc-main {
    padding: 28px 18px 48px;
  }

  .vc-main.vc-tool-main {
    padding: 12px 14px 16px;
    overflow: auto;
  }

  .vc-form-row {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .vc-segmented {
    width: 100%;
  }

  .vc-segmented button {
    flex: 1 1 0;
  }

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

@media (max-width: 560px) {
  .vc-sidebar {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    gap: 8px;
  }

  .vc-sidebar-brand span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .vc-sidebar-search input {
    padding: 0;
    color: transparent;
    cursor: pointer;
  }

  .vc-sidebar-search input::placeholder {
    color: transparent;
  }

  .vc-tools-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .vc-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .vc-toolbar-search {
    width: 100%;
    flex-basis: auto;
  }

  .vc-filters {
    width: 100%;
    margin-left: 0;
  }

  .vc-filter-btn {
    flex: 1 1 0;
  }

  .vc-work-card-inner,
  .vc-result {
    padding: 18px;
  }

  .vc-upload-zone {
    min-height: 220px;
  }

  .vc-stat-grid {
    grid-template-columns: 1fr;
  }

  .vc-actions {
    flex-direction: column;
  }
}

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