@charset "UTF-8";
@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;
  }
}
/* SoundClip — public clip ("made with SoundClip") share page, ported from the
   Claude Design handoff "SoundClip Clip Page.html" (claude.ai/design).

   The prototype styled :root/body directly; here everything is scoped under
   .clip-page so it doesn't leak into the rest of the app (the editor lives
   under .sc-root). Tokens mirror the Aqua theme already used elsewhere.

   Adaptations from the prototype: the placeholder thumb tile is the real
   YouTube thumbnail, the generated WAV + deterministic waveform are the clip's
   real audio + stored peaks, and the played-bar color shift is wired up in the
   ClipPlayer island instead of the prototype's inline script. */
.clip-page {
  --bg: #0a0e1a;
  --panel: rgba(255, 255, 255, 0.05);
  --panel2: rgba(8, 11, 22, 0.55);
  --border: rgba(255, 255, 255, 0.11);
  --text: #eafcff;
  --dim: #7d87a8;
  --aqua: #2cf0d4;
  --blue: #3ac8ff;
  --purple: #be74ff;
  --gold: #ffd23f;
  --on-accent: #06140f;
  --grad: linear-gradient(115deg, #2cf0d4, #3ac8ff 48%, #be74ff);
  --glow: 0 6px 24px rgba(44, 240, 212, 0.34);
  --inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --idle: #303a52;
  --display: "Space Grotesk", system-ui, sans-serif;
  --font: "Inter", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --radius: 20px;
  background:
    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%
  ),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  -webkit-font-smoothing: antialiased;
}

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

.clip-page .card {
  position: relative;
  overflow: hidden;
}
.clip-page .card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(44, 240, 212, 0.7),
    rgba(190, 116, 255, 0.6),
    transparent
  );
  pointer-events: none;
}
.clip-page .card::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;
}
.clip-page .card:hover::after {
  animation: sc-edge-glimmer 1.15s ease;
}
@media (prefers-reduced-motion: reduce) {
  .clip-page .card:hover::after {
    animation: none;
  }
}
.clip-page .card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  width: 100%;
  max-width: 640px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), var(--inset);
  padding: 26px 30px 30px;
}

/* ── brand header ── */
.clip-page .head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 24px;
}

.clip-page .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0;
}

.clip-page .brandrow {
  display: flex;
  align-items: center;
  gap: 14px;
}

.clip-page .logo {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 11, 22, 0.5);
  border: 1px solid var(--border);
  box-shadow: var(--inset);
}

.clip-page .logo svg {
  width: 44px;
  height: 44px;
  display: block;
}

.clip-page .wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.clip-page .wordmark .c {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── title block ── */
.clip-page .titlerow {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 22px;
}

.clip-page .thumb {
  position: relative;
  width: 104px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 11px;
  overflow: hidden;
  background-color: var(--panel2);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 9px,
    rgba(255, 255, 255, 0.05) 9px 10px
  );
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.clip-page .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clip-page .titlemeta {
  min-width: 0;
}

.clip-page .ctitle {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

.clip-page .csub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  font-size: 13px;
  color: var(--dim);
}

.clip-page .csub .chip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--aqua);
  background: rgba(44, 240, 212, 0.1);
  border: 1px solid rgba(44, 240, 212, 0.22);
  padding: 2px 8px;
  border-radius: 999px;
}

.clip-page .csub .sep {
  opacity: 0.4;
}

/* ── waveform / player surface ── */
.clip-page .player {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--inset);
  padding: 20px 22px 18px;
  min-width: 0;
}

/* waveform — played bars carry the gradient (hue tracks position, like the
   editor); unplayed bars stay dimmed until the playhead reaches them */
.clip-page .wave {
  position: relative;
  height: 104px;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(1px, 0.35vw, 2px);
  --sel-top: #2cf0d4;
  --sel-bot: #8b45cb;
}

.clip-page .wave .bar {
  flex: 1 1 0;
  min-width: 2px;
  border-radius: 999px;
  background: var(--idle);
  opacity: 0.96;
  transition: background 0.12s linear, opacity 0.12s linear;
}

.clip-page .wave .bar.played {
  background: linear-gradient(180deg, var(--sel-top), var(--sel-bot));
  opacity: 1;
}

/* native audio player, tinted to sit on the dark surface */
.clip-page .nativeaudio {
  width: 100%;
  min-width: 0;
  margin-top: 16px;
  display: block;
  border-radius: 999px;
  filter: invert(0.92) hue-rotate(176deg) saturate(1.35) brightness(1.02);
}

@media (max-width: 560px) {
  .clip-page .player {
    padding: 16px 14px 15px;
  }
  .clip-page .wave {
    height: 88px;
  }
}
/* ── footer CTAs ── */
.clip-page .foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.clip-page .download {
  position: relative;
  overflow: hidden;
}
.clip-page .download::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);
}
.clip-page .download:hover:not(:disabled)::after {
  animation: sc-control-glimmer 0.9s ease;
}
@media (prefers-reduced-motion: reduce) {
  .clip-page .download:hover:not(:disabled)::after {
    animation: none;
  }
}
.clip-page .download {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--on-accent);
  background: var(--grad);
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: var(--glow);
  text-decoration: none;
  transition: transform 0.12s, filter 0.12s;
}
.clip-page .download:hover {
  filter: brightness(1.06);
}
.clip-page .download:active {
  transform: translateY(0);
}
.clip-page .download {
  white-space: nowrap;
}

.clip-page .download svg {
  width: 17px;
  height: 17px;
}

.clip-page .create {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.12s;
}
.clip-page .create:hover {
  color: var(--aqua);
}

.clip-page .create .plus {
  font-size: 17px;
  line-height: 1;
}

@media (max-width: 560px) {
  .clip-page .card {
    padding: 22px 20px 24px;
  }
  .clip-page .titlerow {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  .clip-page .thumb {
    width: 100%;
    height: 120px;
  }
  .clip-page .ctitle {
    font-size: 19px;
  }
  .clip-page .foot {
    flex-wrap: wrap;
    gap: 14px;
  }
}
