:root {
  --bg: #08090c;
  --card: #14161b;
  --ink: #f1f2f5;
  --soft: rgba(241, 242, 245, 0.54);
  --line: rgba(241, 242, 245, 0.09);
  --accent: #ff5f8f;
  --mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--accent) 9%, var(--bg)) 0%, var(--bg) 72%);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 10px;
}

.ve { position: relative; width: min(320px, 100%); padding: 12px 12px 14px; border-radius: 26px; background: linear-gradient(180deg, #1a1d23, var(--card)); box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 34px 60px -34px rgba(0, 0, 0, 0.95); }
.ve__head { display: flex; align-items: center; gap: 10px; }
.ve__play { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ink); color: #0d0e11; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.ve__play svg { width: 16px; height: 16px; fill: currentColor; }
.ve__play:focus-visible, .ve__split:focus-visible, .ve__track:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.ve__time { flex: 1 1 auto; min-width: 0; font-family: var(--mono); font-size: 13px; white-space: nowrap; color: var(--soft); }
.ve__time b { font-size: 17px; font-weight: 640; color: var(--ink); letter-spacing: -0.02em; }
.ve__time i { font-style: normal; }
.ve__split { flex: none; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 9px; border: 0; border-radius: 12px; background: rgba(241, 242, 245, 0.08); color: var(--ink); font: inherit; font-size: 13px; font-weight: 680; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.ve__split svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; }

.ve__track { position: relative; height: 104px; margin-top: 14px; border-radius: 12px; outline: none; cursor: ew-resize; touch-action: none; user-select: none; -webkit-user-select: none; }
.ve__clips { position: absolute; left: 0; right: 0; top: 0; height: 56px; }
.ve__clip { position: absolute; top: 0; height: 56px; padding: 0 var(--g, 1.500px); }
.ve__tile { position: relative; width: 100%; height: 100%; border-radius: 9px; background-repeat: no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.22); overflow: hidden; }
.ve__tile::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: repeating-linear-gradient(90deg, transparent 0 36px, rgba(8, 9, 12, 0.35) 36px 37.500px); background-position: var(--bx, 0px) 0; }
.ve__cutflash { position: absolute; top: -6px; width: 3px; height: 68px; margin-left: -1.500px; border-radius: 2px; background: #ffffff; opacity: 0; pointer-events: none; }

.ve__wave { position: absolute; left: 0; right: 0; top: 66px; height: 38px; display: flex; align-items: center; gap: 2px; padding: 0 1.500px; }
.ve__wave i { flex: 1 1 0; border-radius: 2px; background: rgba(241, 242, 245, 0.2); }
.ve__wave i.is-past { background: var(--accent); }

.ve__head2 { position: absolute; left: 0; top: -8px; width: 2px; height: 116px; margin-left: -1px; border-radius: 1px; background: var(--ink); box-shadow: 0 0 0 1px rgba(8, 9, 12, 0.5); pointer-events: none; }
.ve__grip { position: absolute; left: -7px; top: -3px; width: 16px; height: 14px; border-radius: 5px 5px 8px 8px; background: var(--ink); box-shadow: 0 3px 6px -2px rgba(0, 0, 0, 0.8); }
.ve__say { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #ffffff; stroke: #101216; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); z-index: 5; }
