@charset "UTF-8";
/* SoundClip — "Aqua" clip-creator design, ported from the Claude Design
   handoff bundle (claude.ai/design). Structural layout from the prototype's
   clip.css; the Aqua theme tokens (cyan → purple → gold, dark) are baked into
   .sc-root since the app commits to a single direction.

   Adaptations from the prototype: the simulated "video preview" tile is the
   real embedded YouTube player, and an empty/paste state wraps the editor for
   entering a URL + validating against the backend. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap");
@keyframes sc-control-glimmer {
  0% {
    left: -42%;
    opacity: 0;
  }
  18%, 62% {
    opacity: 1;
  }
  100% {
    left: 110%;
    opacity: 0;
  }
}
@keyframes sc-edge-glimmer {
  0% {
    left: -30%;
    opacity: 0;
  }
  18%, 78% {
    opacity: 0.72;
  }
  100% {
    left: 102%;
    opacity: 0;
  }
}
.sc-root {
  position: relative;
  overflow: hidden;
}
.sc-root::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(44, 240, 212, 0.44),
    rgba(190, 116, 255, 0.38),
    transparent
  );
  pointer-events: none;
}
.sc-root::after {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  width: 28%;
  height: max(2px, 1px);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.82),
    transparent
  );
  filter: blur(0.35px);
  opacity: 0;
  pointer-events: none;
}
.sc-root:hover::after {
  animation: sc-edge-glimmer 1.15s ease;
}
@media (prefers-reduced-motion: reduce) {
  .sc-root:hover::after {
    animation: none;
  }
}
.sc-root {
  --sc-radius: 14px;
  --sc-radius-sm: 9px;
  /* ── Aqua theme ── */
  --sc-bg:
    radial-gradient(
    120% 85% at 84% -15%,
    rgba(190, 116, 255, 0.2),
    transparent 56%
  ), radial-gradient(
    120% 80% at -12% 112%,
    rgba(44, 240, 212, 0.14),
    transparent 54%
  ), #0a0e1a;
  --sc-panel: rgba(255, 255, 255, 0.05);
  --sc-panel2: rgba(8, 11, 22, 0.55);
  --sc-text: #eafcff;
  --sc-dim: #7d87a8;
  --sc-border: rgba(255, 255, 255, 0.11);
  --sc-accent: #2cf0d4;
  --sc-on-accent: #06140f;
  --sc-grad: linear-gradient(115deg, #2cf0d4, #3ac8ff 48%, #be74ff);
  --sc-glow: 0 6px 24px rgba(44, 240, 212, 0.34);
  --sc-stripe: rgba(255, 255, 255, 0.05);
  --sc-logo-bg: linear-gradient(135deg, #2cf0d4, #be74ff);
  --sc-logo-shadow: 0 4px 16px rgba(140, 120, 255, 0.5);
  --sc-lens-fill: rgba(190, 116, 255, 0.16);
  --sc-sel-fill: linear-gradient(
    180deg,
    rgba(44, 240, 212, 0.14),
    rgba(190, 116, 255, 0.12)
  );
  --sc-sel-glow: 0 0 36px rgba(44, 240, 212, 0.3);
  --sc-inset: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --sc-display: "Space Grotesk", system-ui, sans-serif;
  --sc-font: "Inter", system-ui, sans-serif;
  --sc-mono: "Space Mono", ui-monospace, monospace;
  width: 100%;
  box-sizing: border-box;
  background: var(--sc-bg);
  color: var(--sc-text);
  font-family: var(--sc-font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  outline: none;
  border-radius: 28px;
  border: 1px solid var(--sc-border);
}

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

.sc-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 28px 24px;
}

.sc-mobile .sc-shell {
  padding: 18px 16px 18px;
  gap: 13px;
}

/* ── top bar ── */
.sc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 767.99999px) {
  .sc-brand {
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

.sc-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--sc-logo-bg);
  box-shadow: var(--sc-logo-shadow);
  flex: 0 0 auto;
}
.sc-logo-full {
  width: auto;
}
@media (min-width: 768px) {
  .sc-logo-full {
    height: 36px;
  }
}

/* .sc-mobile .sc-logo-full {
	width: 34px;
	height: 34px;
	font-size: 18px;
} */
.sc-wordmark {
  font-family: var(--sc-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--sc-text);
}

.sc-mobile .sc-wordmark {
  font-size: 18px;
}

.sc-tagline {
  font-size: 12.5px;
  color: var(--sc-dim);
  letter-spacing: 0.01em;
}

.sc-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-block;
}

/* ── "choose another video" back link ── */
.sc-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--sc-display);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--sc-dim);
  text-decoration: none;
  transition: color 0.12s;
}

.sc-back:hover {
  color: var(--sc-accent);
}

.sc-backarrow {
  width: 15px;
  height: 15px;
  line-height: 1;
  transition: transform 0.12s;
}

.sc-back:hover .sc-backarrow {
  transform: translateX(-3px);
}

.sc-mobile .sc-back {
  font-size: 13px;
}

/* in the desktop card it reads as a header above the thumbnail */
.sc-videocard .sc-back {
  width: 100%;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sc-border);
}

/* ── info button ── */
.sc-infobtn {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--sc-border);
  background: var(--sc-panel);
  color: var(--sc-dim);
  cursor: pointer;
  font-family: var(--sc-display);
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}

.sc-infobtn:hover {
  color: var(--sc-accent);
  border-color: var(--sc-accent);
  background: var(--sc-panel2);
}

/* ── empty / paste state ── */
.sc-empty {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 2px 6px;
}

.sc-emptyhead {
  font-family: var(--sc-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--sc-text);
}

.sc-emptysub {
  font-size: 13px;
  color: var(--sc-dim);
  margin-top: -8px;
}

.sc-urlrow {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.sc-mobile .sc-urlrow {
  flex-direction: column;
}

.sc-urlinput {
  flex: 1;
  min-width: 0;
  background: var(--sc-panel2);
  border: 1px solid var(--sc-border);
  border-radius: 999px;
  color: var(--sc-text);
  font-family: var(--sc-mono);
  font-size: 13px;
  padding: 13px 18px;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.sc-urlinput::placeholder {
  color: var(--sc-dim);
}

.sc-urlinput:focus {
  border-color: var(--sc-accent);
  box-shadow: 0 0 0 3px rgba(44, 240, 212, 0.15);
}

.sc-validate {
  flex: 0 0 auto;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sc-display);
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  color: var(--sc-on-accent);
  background: var(--sc-grad);
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow: var(--sc-glow);
  transition: transform 0.12s, filter 0.12s;
}

.sc-validate:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(69%);
}

.sc-alert {
  border-radius: var(--sc-radius-sm);
  padding: 11px 14px;
  font-size: 12.5px;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sc-alert-error {
  background: rgba(224, 36, 94, 0.12);
  border: 1px solid rgba(224, 36, 94, 0.4);
  color: #ffd0dd;
}

.sc-alert-info {
  background: var(--sc-sel-fill);
  border: 1px solid var(--sc-border);
  color: var(--sc-text);
}

/* ── recently-used videos log ── */
.sc-recents {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.sc-recentstitle {
  font-family: var(--sc-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sc-dim);
  margin-bottom: 2px;
}

.sc-recent {
  background: var(--sc-panel2);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-sm);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}

.sc-recent:hover {
  border-color: var(--sc-accent);
  background: var(--sc-panel);
}

.sc-recentthumb {
  width: 64px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 6px;
  background: var(--sc-panel);
}

.sc-recenttitle {
  font-family: var(--sc-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--sc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-recenturl {
  font-family: var(--sc-mono);
  font-size: 10.5px;
  color: var(--sc-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-recentdur {
  font-family: var(--sc-mono);
  font-size: 11px;
  color: var(--sc-dim);
  flex: 0 0 auto;
}

.sc-recentx {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--sc-dim);
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.12s, background 0.12s;
}

.sc-recentx .sc-icon,
.sc-modalx .sc-icon {
  width: 14px;
  height: 14px;
}

.sc-recentx:hover {
  color: var(--sc-text);
  background: rgba(255, 255, 255, 0.06);
}

/* ── real YouTube player panel (replaces the prototype's preview tile) ── */
.sc-player {
  background: var(--sc-panel2);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-inset);
  position: relative;
  width: 100%;
  overflow: hidden;
}

.sc-player.playing {
  border-color: var(--sc-accent);
}

.sc-vidmeta {
  display: flex;
  align-items: center;
  flex-flow: row nowrap;
  gap: 7px;
  min-width: 0;
}

.sc-vidtitle {
  font-family: var(--sc-display);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--sc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.sc-mobile .sc-vidtitle {
  font-size: 14px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sc-vidsub {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--sc-dim);
  font-family: var(--sc-mono);
  flex: 0 0 auto;
}

.sc-dot {
  opacity: 0.5;
}

/* ── detail track — the interactive editor ── */
.sc-editorhead {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.sc-rangedisplay {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.sc-rangetime {
  font-family: var(--sc-display);
  font-weight: 700;
  font-size: 27px;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.12s;
}

.sc-rangearrow {
  font-size: 20px;
  color: var(--sc-dim);
  margin: 0 2px;
}

.sc-mobile .sc-editorhead {
  gap: 8px;
  margin-bottom: 8px;
}

.sc-mobile .sc-rangedisplay {
  gap: 9px;
}

.sc-mobile .sc-rangetime {
  font-size: 22px;
}

.sc-ticks {
  position: relative;
  height: 15px;
  margin-bottom: 4px;
}

.sc-tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-family: var(--sc-mono);
  font-size: 9.5px;
  color: var(--sc-dim);
  white-space: nowrap;
}

.sc-tick::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 1px;
  height: 5px;
  background: var(--sc-border);
}

.sc-detail {
  background: var(--sc-panel2);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-inset);
  position: relative;
  height: 134px;
  overflow: hidden;
  cursor: crosshair;
  padding: 8px 6px;
  touch-action: none;
}

.sc-mobile .sc-detail {
  height: 116px;
}

.sc-ghost {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--sc-text);
  opacity: 0.35;
  pointer-events: none;
  z-index: 4;
}

.sc-ghosttip {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sc-mono);
  font-size: 10px;
  color: var(--sc-text);
  background: var(--sc-panel);
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
  border: 1px solid var(--sc-border);
}

.sc-selband {
  position: absolute;
  top: 0;
  bottom: 0;
  cursor: grab;
  touch-action: none;
  z-index: 3;
}

.sc-selband:active {
  cursor: grabbing;
}

.sc-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  z-index: 5;
}

.sc-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 42px;
  border-radius: 6px;
  background: var(--sc-grad);
  box-shadow: var(--sc-glow);
}

.sc-handle i {
  position: relative;
  width: 2px;
  height: 16px;
  border-radius: 2px;
  background: var(--sc-on-accent);
  opacity: 0.85;
  box-shadow: 4px 0 0 var(--sc-on-accent), -4px 0 0 var(--sc-on-accent);
}

.sc-hl {
  left: -8px;
}

.sc-hr {
  right: -8px;
}

.sc-mobile .sc-handle {
  width: 22px;
}

.sc-mobile .sc-handle::before {
  width: 22px;
}

.sc-mobile .sc-hl {
  left: -11px;
}

.sc-mobile .sc-hr {
  right: -11px;
}

/* ── overview track (minimap, below the editor) ── */
.sc-ovcanvas {
  background: var(--sc-panel);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-sm);
  position: relative;
  height: 42px;
  overflow: hidden;
  cursor: crosshair;
  padding: 5px 4px;
}

.sc-mobile .sc-ovcanvas {
  height: 36px;
}

.sc-lens {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--sc-lens-fill);
  border-left: 2px solid var(--sc-accent);
  border-right: 2px solid var(--sc-accent);
  cursor: grab;
  touch-action: none;
}

.sc-lens:active {
  cursor: grabbing;
}

.sc-lensedge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 9px;
  cursor: ew-resize;
}

.sc-lensl {
  left: -5px;
}

.sc-lensr {
  right: -5px;
}

/* ── transport ── */
.sc-transport {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  flex: 0 0 auto;
}

.sc-mobile .sc-transport {
  gap: 11px;
}

.sc-play {
  position: relative;
  overflow: hidden;
}
.sc-play::after {
  content: "";
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -42%;
  width: 34%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.36),
    transparent
  );
  opacity: 0;
  pointer-events: none;
  transform: skewX(-18deg);
}
.sc-play:hover:not(:disabled)::after {
  animation: sc-control-glimmer 0.82s ease;
}
@media (prefers-reduced-motion: reduce) {
  .sc-play:hover:not(:disabled)::after {
    animation: none;
  }
}
.sc-play {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: none;
  background: var(--sc-grad);
  color: var(--sc-on-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
  box-shadow: var(--sc-glow);
  transition: transform 0.12s;
}
.sc-play:hover {
  transform: scale(1.06);
}
.sc-play:active {
  transform: scale(0.96);
}
.sc-play:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.sc-play:disabled:hover {
  transform: none;
}

.sc-play .sc-icon {
  width: 100%;
  height: 100%;
}

.sc-mobile .sc-play {
  width: 46px;
  height: 46px;
  padding: 11px;
}

.sc-readout {
  display: flex;
  flex-direction: column;
  min-width: 60px;
}

.sc-readbig {
  font-family: var(--sc-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sc-text);
}

.sc-readbig span {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.65;
  margin-left: 1px;
}

.sc-readsmall {
  font-family: var(--sc-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sc-dim);
  margin-top: 6px;
}

.sc-mobile .sc-readbig {
  font-size: 24px;
}

.sc-mobile .sc-readout {
  min-width: 52px;
}

.sc-tbtn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--sc-border);
  background: var(--sc-panel);
  color: var(--sc-text);
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, border-color 0.12s;
}

.sc-tbtn .sc-icon {
  width: 18px;
  height: 18px;
}

.sc-tbtn:hover {
  background: var(--sc-panel2);
  border-color: var(--sc-accent);
}

.sc-looptg.on {
  color: var(--sc-on-accent);
  background: var(--sc-accent);
  border-color: var(--sc-accent);
}

/* ── footer / CTA ── */
.sc-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  min-height: 50px;
}

.sc-create .sc-icon {
  height: 24px;
  width: 24px;
}

.sc-create,
.sc-copy {
  position: relative;
  overflow: hidden;
}
.sc-create::after,
.sc-copy::after {
  content: "";
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -42%;
  width: 34%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.42),
    transparent
  );
  opacity: 0;
  pointer-events: none;
  transform: skewX(-18deg);
}
.sc-create:hover:not(:disabled)::after,
.sc-copy:hover:not(:disabled)::after {
  animation: sc-control-glimmer 0.9s ease;
}
@media (prefers-reduced-motion: reduce) {
  .sc-create:hover:not(:disabled)::after,
  .sc-copy:hover:not(:disabled)::after {
    animation: none;
  }
}
.sc-create,
.sc-copy {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sc-display);
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  color: var(--sc-on-accent);
  background: var(--sc-grad);
  padding: 15px 28px;
  border-radius: 999px;
  box-shadow: var(--sc-glow);
  text-decoration: none;
  transition: transform 0.12s, filter 0.12s;
}
.sc-create:hover,
.sc-copy:hover {
  filter: brightness(1.06);
}
.sc-create:active,
.sc-copy:active {
  transform: translateY(0);
}
.sc-create,
.sc-copy {
  margin-left: auto;
}

.sc-mobile .sc-create,
.sc-mobile .sc-copy {
  width: 100%;
  margin-left: 0;
  padding: 15px;
  text-align: center;
}

.sc-mobile .sc-footer {
  flex-direction: column;
  align-items: stretch;
}

.sc-rendering {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sc-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--sc-text);
}

.sc-mobile .sc-rendering {
  margin: 0 auto;
}

.sc-spin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid var(--sc-border);
  border-top-color: var(--sc-accent);
  animation: sc-spin 0.7s linear infinite;
}

@keyframes sc-spin {
  to {
    transform: rotate(360deg);
  }
}
.sc-done {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  flex-flow: column nowrap;
}
@media (min-width: 768px) {
  .sc-done {
    align-items: flex-start;
  }
}

.sc-mobile .sc-done {
  flex-wrap: wrap;
}

.sc-donehead {
  font-family: var(--sc-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--sc-accent);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sc-sharepill {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 7px;
  border-radius: 24px;
  background: var(--sc-panel);
  border: 1px solid var(--sc-border);
  flex-flow: column nowrap;
  width: 100%;
}
@media (min-width: 768px) {
  .sc-sharepill {
    padding: 7px 7px 7px 14px;
    border-radius: 999px;
    flex-flow: row wrap;
  }
}
.sc-sharepill .sc-shareurl {
  font-family: var(--sc-mono);
  font-size: 12px;
  color: var(--sc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
@media (max-width: 767.99999px) {
  .sc-sharepill .sc-shareurl {
    width: 100%;
    border-radius: 14px;
    padding: 6px;
    background-color: var(--sc-on-accent);
    color: var(--sc-accent);
  }
}

.sc-again {
  border: 1px solid var(--sc-border);
  background: var(--sc-panel);
  color: var(--sc-text);
  cursor: pointer;
  font-family: var(--sc-display);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.sc-again:hover {
  border-color: var(--sc-accent);
}

/* "New clip" — mirrors the clip-share "+ Create your own" text link */
.sc-newclip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--sc-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--sc-dim);
  text-decoration: none;
  transition: color 0.12s;
}
.sc-newclip:hover {
  color: var(--sc-accent);
}

.sc-newclip .sc-icon {
  width: 16px;
  height: 16px;
}

/* ── info modal ── */
.sc-modal {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 7, 14, 0.6);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.sc-modalcard {
  background: #0a0e1a;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 26px 26px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), var(--sc-inset);
}

.sc-modalx {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--sc-border);
  background: transparent;
  color: var(--sc-dim);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-modalx:hover {
  color: var(--sc-text);
  border-color: var(--sc-accent);
}

.sc-modaltitle {
  font-family: var(--sc-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--sc-text);
}

.sc-modalsub {
  font-size: 13px;
  color: var(--sc-dim);
  margin-top: 4px;
  margin-bottom: 18px;
}

.sc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sc-steps li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--sc-text);
}

.sc-steps b {
  font-weight: 700;
}

.sc-stepnum {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sc-grad);
  color: var(--sc-on-accent);
  font-family: var(--sc-display);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sc-glow);
}

.sc-steps kbd {
  font-family: var(--sc-mono);
  font-size: 10.5px;
  color: var(--sc-text);
  background: var(--sc-panel);
  border: 1px solid var(--sc-border);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
}

.sc-modaltip {
  background: var(--sc-sel-fill);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-sm);
  margin-top: 20px;
  padding: 13px 15px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--sc-text);
}

/* ══════════════════ DESKTOP — two-column layout ══════════════════
   Left rail = static source video info. Right pane = the editor.
   Driven by an isDesktop breakpoint in the island; the single-column
   mobile flow is untouched. */
/* keep the single-column (mobile / empty / paste) card from stretching
   on tablets, while the desktop card spans wide */
.sc-root.sc-mobile {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.sc-root.sc-desktop {
  max-width: 1180px;
  border-radius: 20px;
}

.sc-desk {
  display: grid;
  grid-template-columns: 348px minmax(0, 1fr);
  gap: 0;
  height: 100%;
}

.sc-deskleft {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding-right: 28px;
}

.sc-deskright {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding-left: 30px;
  border-left: 1px solid var(--sc-border);
}

/* left rail: brand + tagline sit tight together */
.sc-deskleft .sc-tagline {
  margin-top: -8px;
  font-size: 13px;
}

/* video card — the static source information (hosts the real player) */
.sc-videocard {
  background: var(--sc-panel);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-inset);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sc-videocard .sc-player {
  background: var(--sc-panel2);
}

.sc-videocard .sc-vidmeta {
  /* flex-direction: column; */
  align-items: flex-start;
  gap: 4px;
}

.sc-videocard .sc-vidtitle {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 17px;
  line-height: 1.25;
}

/* source facts grid */
.sc-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--sc-border);
  padding-top: 12px;
}

.sc-fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 5px 0;
  gap: 12px;
}

.sc-factlbl {
  font-family: var(--sc-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sc-dim);
}

.sc-factval {
  font-family: var(--sc-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--sc-text);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

/* how-to block in the rail */
.sc-howto {
  margin-top: auto;
}

.sc-howtotitle {
  font-family: var(--sc-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sc-dim);
  margin-bottom: 14px;
}

.sc-steps-compact {
  gap: 13px;
}

.sc-steps-compact li {
  font-size: 12.5px;
  line-height: 1.45;
}

.sc-steps-compact .sc-stepnum {
  width: 22px;
  height: 22px;
  font-size: 12px;
  line-height: 0;
}

/* right pane header */
.sc-editlabel {
  font-family: var(--sc-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--sc-text);
}

/* the editor breathes a bit more on desktop */
.sc-desktop .sc-editorhead {
  justify-content: flex-start;
}

.sc-desktop .sc-rangetime {
  font-size: 30px;
}

.sc-desktop .sc-detail {
  height: 150px;
}

.sc-desktop .sc-ovcanvas {
  height: 48px;
}

/* ══════════════════ HOME — start card + two-column history ══════════════════
   A touch wider than the editor card so the two "recent" lists sit side by
   side, with the URL input + button kept on a single row. */
.sc-root.sc-mobile.sc-home {
  max-width: 760px;
}

.sc-root.sc-home .sc-urlrow {
  flex-direction: row;
  align-items: stretch;
}

.sc-root.sc-home .sc-validate {
  white-space: nowrap;
}

.sc-homecols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px 22px;
  margin-top: 2px;
}

@media (min-width: 560px) {
  .sc-homecols {
    grid-template-columns: 1fr 1fr;
  }
}
.sc-homecol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.sc-homecol .sc-recentthumb {
  width: 52px;
  height: 30px;
}

.sc-emptyhint {
  font-size: 12px;
  color: var(--sc-dim);
  padding: 8px 2px;
}
