.pvd-wrap {
  --pvd-c1: #7A0C1E;   /* deep maroon */
  --pvd-c2: #E60023;   /* Pinterest red */
  --pvd-c3: #FF8A5B;   /* warm coral/orange */
  --pvd-text: #14121f;
  --pvd-muted: #6b6b76;
  --pvd-border: #ececee;
  --pvd-error-bg: #fdecec;
  --pvd-error-text: #b3261e;

  max-width: 100%;
  width: 100%;
  margin: 24px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--pvd-text);
}
.pvd-wrap * { box-sizing: border-box; }

/* ---------- Hero ---------- */
.pvd-hero {
  position: relative;
  background: linear-gradient(120deg, var(--pvd-c1) 0%, var(--pvd-c2) 38%, #FF4D3D 68%, var(--pvd-c3) 100%);
  border-radius: 0;
  padding: 60px 32px 52px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 50px -12px rgba(230, 0, 35, 0.35);
}
/* soft glow blobs for depth */
.pvd-hero::before,
.pvd-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.5;
  pointer-events: none;
}
.pvd-hero::before {
  width: 220px; height: 220px;
  background: #ffffff;
  top: -80px; left: -60px;
  opacity: 0.15;
}
.pvd-hero::after {
  width: 260px; height: 260px;
  background: #ffd28f;
  bottom: -100px; right: -70px;
  opacity: 0.25;
}

.pvd-badges {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.pvd-badge {
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pvd-badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #fff;
}

.pvd-hero-title {
  position: relative;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.pvd-hero-subtitle {
  position: relative;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  line-height: 1.55;
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ---------- Tool card (floats inside the hero) ---------- */
.pvd-tool-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 22px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  text-align: left;
}

.pvd-input-row { display: flex; gap: 8px; }
.pvd-tool-card input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 1.5px solid var(--pvd-border);
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  background: #fafafa;
  color: var(--pvd-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pvd-tool-card input[type="text"]:focus {
  border-color: var(--pvd-c2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(230,0,35,0.12);
}

.pvd-tool-card button,
.pvd-download-btn {
  background: linear-gradient(135deg, var(--pvd-c1), var(--pvd-c2), var(--pvd-c3));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  box-shadow: 0 6px 16px rgba(230,0,35,0.35);
}
.pvd-tool-card button:hover:not(:disabled),
.pvd-download-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(230,0,35,0.45);
  transform: translateY(-1px);
}
.pvd-tool-card button:active:not(:disabled),
.pvd-download-btn:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.pvd-tool-card button:disabled,
.pvd-download-btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

#pvd-fetch-btn {
  padding: 0 24px;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.pvd-arrow { transition: transform 0.15s; }
#pvd-fetch-btn:hover .pvd-arrow { transform: translateX(3px); }

.pvd-status {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--pvd-muted);
  display: none;
  align-items: center;
}
.pvd-status.visible { display: flex; }

.pvd-error {
  margin-top: 14px;
  background: var(--pvd-error-bg);
  color: var(--pvd-error-text);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.4;
  display: none;
}
.pvd-error.visible { display: block; }

.pvd-result { margin-top: 18px; display: none; }
.pvd-result.visible { display: block; }

.pvd-preview-wrap {
  width: 100%;
  max-height: 400px;
  min-height: 180px;
  background: #0a0a0a;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pvd-preview-wrap video {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
}

.pvd-option-group { margin-bottom: 14px; }
.pvd-option-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pvd-muted);
  margin-bottom: 8px;
}

.pvd-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #f9f9fb url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236b6b76' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1.5px solid var(--pvd-border);
  border-radius: 12px;
  padding: 13px 40px 13px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--pvd-text);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.pvd-select:hover { background-color: #f2f2f5; }
.pvd-select:focus {
  outline: none;
  border-color: var(--pvd-c2);
  box-shadow: 0 0 0 3px rgba(230,0,35,0.12);
}

.pvd-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 18px;
  font-size: 16px;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.pvd-download-status {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--pvd-muted);
  text-align: center;
  display: none;
}
.pvd-download-status.visible { display: block; }

.pvd-reset-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}
#pvd-reset-btn.pvd-reset-btn {
  padding: 13px !important;
  margin-top: 10px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: #f5f5f7 !important;
  color: var(--pvd-text) !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  cursor: pointer !important;
  transition: background-color 0.15s !important;
}
#pvd-reset-btn.pvd-reset-btn:hover {
  background: #ebebee;
  filter: none;
  box-shadow: none;
  transform: none;
}
#pvd-reset-btn.pvd-reset-btn:active {
  background: #e2e2e6;
  transform: none;
}

.pvd-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(107,107,118,0.25);
  border-top-color: var(--pvd-muted);
  border-radius: 50%;
  animation: pvd-spin 0.7s linear infinite;
  margin-right: 8px;
  flex-shrink: 0;
}
@keyframes pvd-spin { to { transform: rotate(360deg); } }

/* ---------- Format pills below the card ---------- */
.pvd-format-pills {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.pvd-format-pills span {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.92);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 999px;
}

.pvd-note {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--pvd-muted);
  line-height: 1.5;
  text-align: center;
  padding: 0 8px;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .pvd-hero { padding: 32px 18px 28px; border-radius: 0; }
  .pvd-hero-title { font-size: 24px; }
  .pvd-hero-subtitle { font-size: 13.5px; margin-bottom: 22px; }
  .pvd-tool-card { padding: 16px; border-radius: 16px; }
  .pvd-input-row { flex-direction: column; }
  .pvd-tool-card input[type="text"] { width: 100%; }
  #pvd-fetch-btn { width: 100%; padding: 14px; justify-content: center; }
  .pvd-preview-wrap { max-height: 300px; }
  .pvd-preview-wrap video { max-height: 300px; }
  .pvd-badge { font-size: 11px; padding: 5px 11px; }
}
