:root {
  --hl-color: #f4e85c;
}

.file-row textarea {
  width: 100%;
  resize: vertical;
  min-height: 66px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: white;
  background: rgba(0, 0, 0, 0.22);
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
}

.hint {
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
}

.stage {
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

.scene-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: scale(var(--scene-scale));
  transform-origin: center;
}

/* ---------- Shared card ---------- */

.sp-card {
  width: 640px;
  max-width: 82vw;
  box-sizing: border-box;
  user-select: none;
}

.sp-card {
  position: relative;
  z-index: 0;
}

.sp-text .word {
  cursor: pointer;
}

/* The highlight is drawn as positioned rectangles (one per wrapped line) behind
   the text, so a multi-line run can animate one line at a time. */
.hl-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hl-rect {
  position: absolute;
  background: var(--hl-color);
  border-radius: 4px;
}

.sp-name.blurred,
.sp-handle.blurred {
  filter: blur(6px);
}

/* ---------- Avatar ---------- */

.sp-avatar {
  position: relative;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--avatar-color, #e0564b);
  color: white;
  font-weight: 700;
}

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

.sp-avatar.blurred {
  filter: blur(7px);
}

/* ---------- Review card (Shopify-style) ---------- */

.sp-review {
  padding: 42px 48px;
  border-radius: 34px;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.sp-review-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sp-review .sp-name {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sp-verified-badge {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.sp-verified {
  font-size: 22px;
  font-weight: 600;
  color: #2a2a2a;
}

.sp-review .sp-date {
  margin-top: 12px;
  font-size: 22px;
  color: #9aa0a6;
  font-weight: 500;
}

.sp-stars {
  margin-top: 16px;
  display: flex;
  gap: 3px;
}

.sp-stars svg {
  width: 31px;
  height: 31px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

.sp-review .sp-text {
  margin-top: 22px;
  font-size: 30px;
  line-height: 1.42;
  color: #1a1a1a;
}

/* ---------- YouTube comment ---------- */

.sp-youtube,
.sp-instagram {
  display: flex;
  gap: 16px;
  padding: 26px 30px;
  border-radius: 20px;
  background: #fff;
  color: #0f0f0f;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.sp-youtube .sp-avatar {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.sp-yt-body {
  flex: 1;
  min-width: 0;
}

.sp-yt-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sp-youtube .sp-handle {
  font-size: 17px;
  font-weight: 600;
  color: #0f0f0f;
}

.sp-time {
  font-size: 15px;
  color: #606060;
}

.sp-youtube .sp-text {
  margin-top: 5px;
  font-size: 19px;
  line-height: 1.4;
  color: #0f0f0f;
}

.sp-yt-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
  color: #0f0f0f;
}

.sp-yt-actions svg {
  width: 22px;
  height: 22px;
}

.sp-yt-actions .sp-act {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #606060;
}

.sp-yt-actions .sp-reply {
  font-size: 15px;
  font-weight: 600;
  color: #0f0f0f;
}

/* ---------- Instagram comment ---------- */

.sp-instagram .sp-avatar {
  width: 44px;
  height: 44px;
  font-size: 16px;
}

.sp-ig-body {
  flex: 1;
  min-width: 0;
}

.sp-ig-line {
  font-size: 19px;
  line-height: 1.4;
  color: #0f0f0f;
}

.sp-instagram .sp-handle {
  font-weight: 600;
  margin-right: 8px;
}

.sp-ig-meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 14px;
  color: #737373;
  font-weight: 600;
}

.sp-ig-heart {
  flex: 0 0 auto;
  align-self: center;
  color: #737373;
}

.sp-ig-heart svg {
  width: 18px;
  height: 18px;
}

