:root {
  --vd-accent: #fd4c52;
  --vd-text: #1d1d1f;
  --vd-muted: #6e6e73;
  --vd-fill: rgba(118, 118, 128, 0.12);
  --vd-edge: rgba(0, 0, 0, 0.06);
  --vd-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 10px rgba(0, 0, 0, 0.04), 0 14px 32px rgba(0, 0, 0, 0.06);
  --vd-shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.05), 0 10px 22px rgba(0, 0, 0, 0.07), 0 28px 56px rgba(0, 0, 0, 0.1);
  --vd-spring: cubic-bezier(0.2, 0.9, 0.25, 1.15);
}

* {
  box-sizing: border-box;
}

body.vd-watch {
  background: #ffffff;
  color: var(--vd-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

.vd-watch__page {
  margin: 0 auto;
  max-width: 1040px;
  padding: 32px 20px 56px;
}

.vd-watch__stage {
  background: #000;
  border-radius: 22px;
  box-shadow: var(--vd-shadow-lift);
  overflow: hidden;
  position: relative;
}

.vd-watch__lead {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: absolute;
  z-index: 1000002;
}

.vd-watch__lead[hidden] {
  display: none;
}

.vd-watch__lead-card {
  animation: vd-rise 0.45s var(--vd-spring);
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--vd-shadow-lift);
  max-width: 400px;
  padding: 26px 26px 20px;
  width: 100%;
}

.vd-watch__lead-card h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 4px;
}

.vd-watch__lead-card > p {
  color: var(--vd-muted);
  font-size: 14px;
  margin: 0 0 18px;
}

.vd-watch__lead-card label {
  display: block;
  margin-bottom: 12px;
}

.vd-watch__lead-card label span {
  color: var(--vd-muted);
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}

.vd-watch__lead-card input {
  background: var(--vd-fill);
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--vd-text);
  font: inherit;
  font-size: 16px;
  padding: 11px 14px;
  width: 100%;
}

.vd-watch__lead-card input:focus {
  background: #ffffff;
  border-color: var(--vd-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--vd-accent) 15%, transparent);
  outline: none;
}

.vd-watch__lead-card small {
  color: var(--vd-muted);
  display: block;
  font-size: 12px;
  margin-top: 12px;
  text-align: center;
}

.vd-watch__lead-error {
  color: #c4161c;
  font-size: 14px;
  margin: 0 0 10px;
}

.vd-watch__button {
  background: var(--vd-accent);
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 4px color-mix(in srgb, var(--vd-accent) 22%, transparent), 0 8px 18px color-mix(in srgb, var(--vd-accent) 24%, transparent);
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.35s var(--vd-spring), box-shadow 0.3s ease;
}

.vd-watch__lead .vd-watch__button {
  width: 100%;
}

.vd-watch__button:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.vd-watch__button:disabled {
  opacity: 0.6;
  transform: none;
}

.vd-watch__skip {
  background: none;
  border: 0;
  color: var(--vd-muted);
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 14px;
  margin: 8px auto 0;
}

.vd-watch__skip[hidden] {
  display: none;
}

.vd-watch__cta {
  animation: vd-rise 0.5s var(--vd-spring);
  background: var(--vd-accent);
  border-radius: 999px;
  bottom: 72px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25), 0 14px 30px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 22px;
  position: absolute;
  right: 18px;
  text-decoration: none;
  z-index: 1000001;
}

.vd-watch__cta[hidden] {
  display: none;
}

.vd-watch__cta:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.vd-watch__info {
  background: #ffffff;
  border: 1px solid var(--vd-edge);
  border-radius: 22px;
  box-shadow: var(--vd-shadow);
  margin-top: 24px;
  padding: 24px 26px;
}

.vd-watch__info h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 6px;
}

.vd-watch__owner {
  color: var(--vd-muted);
  margin: 0 0 14px;
}

.vd-watch__description {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.vd-watch__info--empty {
  margin-top: 80px;
  text-align: center;
}

@keyframes vd-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  .vd-watch__page {
    padding: 12px 12px 40px;
  }

  .vd-watch__stage {
    border-radius: 16px;
  }

  .vd-watch__info h1 {
    font-size: 24px;
  }

  .vd-watch__cta {
    bottom: 60px;
    font-size: 14px;
    padding: 10px 16px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vd-watch__lead-card,
  .vd-watch__cta {
    animation: none;
  }

  .vd-watch__button,
  .vd-watch__cta {
    transition: none;
  }
}

.vd-watch--embed {
  background: transparent;
  height: 100%;
  overflow: hidden;
}

html:has(.vd-watch--embed) {
  height: 100%;
}

.vd-watch--embed .vd-watch__stage {
  border-radius: 0;
  box-shadow: none;
  height: 100%;
}

.vd-watch--embed #vd-player {
  height: 100%;
}

.vd-watch--embed .vd-watch__lead-card {
  max-height: 100%;
  overflow-y: auto;
}

.vd-watch__end {
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  inset: 0;
  justify-content: center;
  position: absolute;
  z-index: 1000001;
}

.vd-watch__end[hidden] {
  display: none;
}
