.tvd {
  max-width: 650px !important;
  margin: 26px auto;
  padding: 0 12px;
}
.tvd-form {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.tvd-card.tvd-hero {
  background: radial-gradient(circle at 50% 0%, hsl(340, 82%, 60%, 0.15) 0%, transparent 50%);
  /* border: 1px solid #1f2937; */
  /* border-radius: 16px; */
  /* box-shadow: 0 12px 32px rgba(255, 0, 80, 0.15), 0 10px 28px rgba(0, 242, 234, 0.12); */
  padding: 28px 20px;
  text-align: center;
  color: #fff;
}
.tvd-hero-badge {
  display: inline-block;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 8px;
}
.tvd-hero-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
  line-height: 55px;
  /* background: linear-gradient(135deg, #ff0050, #00f2ea); */
  /* -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent; */
}

.tvd-hero-title-highlight {
  background: linear-gradient(135deg, hsl(340, 82%, 60%) 0%, hsl(280, 70%, 55%) 50%, hsl(200, 90%, 55%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tvd-hero-subtitle {
  font-size: 14px;
  color: #9ca3af;
  max-width: 780px;
  margin: 0 auto 16px;
}
.tvd-input-group {
  display: flex;
  align-items: center;
  border: 2px solid #36404A80;
 box-shadow: 0 0 30px rgba(255, 0, 150, 0.25), 0 0 60px rgba(255, 0, 150, 0.15);
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  height: 55px;
}
.tvd-input-group .tvd-input {
  flex: 1;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  font-size: 16px;
  background: #181D25B3;
  color: #f3f4f6;
  box-shadow: none;
  height: 55px;
}

.tvd-input-group .tvd-input:focus {
   background: #181D25B3 !important;
  color: #f3f4f6;
}

.tvd-start {
  border-radius: 0;
  min-width: 120px;
}
.tvd-terms {
  font-size: 12px;
  color: #6b7280;
  margin-top: 10px;
}
.tvd-terms .tvd-terms-link {
  color: #ff0050;
}
.tvd-terms .tvd-terms-link:hover {
  text-decoration: underline;
}
.tvd-input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  font-size: 16px;
  background: #0b0b0b;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.tvd-input:focus {
  outline: none;
  border-color: #ff0050;
  box-shadow: 0 0 0 3px rgba(255, 0, 80, 0.25);
}
.tvd-button {
  padding: 12px 16px;
  border: none;
  /* border-radius: 999px; */
  background: linear-gradient(135deg, hsl(340, 82%, 60%) 0%, hsl(280, 70%, 55%) 50%, hsl(200, 90%, 55%) 100%);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 0, 80, 0.2);
  height: 55px;
  transition: all .25s ease;
}
.tvd-button-secondary {
  background: #111827;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.tvd-button:hover {
  filter: brightness(1.06);
}
.tvd-button-secondary:hover {
  background: #1b2431;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35), 0 0 0 3px rgba(0,242,234,0.18) inset;
  transform: translateY(-1px);
}
.tvd-result {
  max-width: 840px;
  margin: 50px auto 0;
}
.tvd-loading {
  padding: 10px;
  color: #e5e7eb;
}
.tvd-card-light {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  padding: 14px;
  color: #111;
}
.tvd-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
}
.tvd-left {
  display: flex;
  flex-direction: column;
}
.tvd-left-title {
  margin-top: 10px;
  font-weight: 700;
  color: #111;
}
.tvd-right {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  flex-direction: column;
}
.tvd-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.tvd-table thead th {
  background: #f9fafb;
  color: #374151;
  font-weight: 700;
  font-size: 14px;
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}
.tvd-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
  color: #000;
  text-align: left;
}
.tvd-table tr:last-child td {
  border-bottom: none;
}
.tvd-table-wrap {
  width: 100%;
}
.tvd-btn-download {
  background: linear-gradient(135deg, #ff0050, #00f2ea);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 0, 80, 0.18);
}
.tvd-btn-download:hover {
  filter: brightness(1.06);
}
/* title moved into left column */
.tvd-loadingbar {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}
.tvd-loadingbar span {
  width: 14px;
  height: 14px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  display: inline-block;
  animation: tvdPulse 1s infinite ease-in-out;
}
.tvd-loadingbar span:nth-child(1) {
  animation-delay: 0s;
}
.tvd-loadingbar span:nth-child(2) {
  animation-delay: 0.1s;
}
.tvd-loadingbar span:nth-child(3) {
  animation-delay: 0.2s;
}
.tvd-loadingbar span:nth-child(4) {
  animation-delay: 0.3s;
}
.tvd-loadingbar span:nth-child(5) {
  animation-delay: 0.4s;
}
.tvd-loadingbar span:nth-child(6) {
  animation-delay: 0.5s;
}
.tvd-loadingbar span:nth-child(7) {
  animation-delay: 0.6s;
}
.tvd-loadingbar span:nth-child(8) {
  animation-delay: 0.7s;
}
@keyframes tvdPulse {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
}
.tvd-error {
  padding: 10px;
  background: #2b0007;
  border: 1px solid #ff8aa7;
  color: #ffdce0;
  border-radius: 8px;
}
.tvd-card {
  /* background: #0f0f0f;
  border: 1px solid #1f2937;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(255, 0, 80, 0.15),
    0 10px 28px rgba(0, 242, 234, 0.12); */
  padding: 14px;
  color: #fff;
}
.tvd-title {
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}
.tvd-video-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  max-width: 360px;
  margin: 0;
  border: 1px solid #1f2937;
}
.tvd-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
}
.tvd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.tvd-btn {
  display: inline-block;
  padding: 6px 10px;
  font-size: 14px !important;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: all .25s ease;
}
.tvd-btn:visited,
.tvd-btn:hover,
.tvd-btn:focus {
  text-decoration: none !important;
  border-bottom: none !important;
  color: #fff !important;
}
.tvd-btn-primary {
  background: linear-gradient(135deg, hsl(340, 82%, 60%) 0%, hsl(280, 70%, 55%) 50%, hsl(200, 90%, 55%) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 14px !important;
  box-shadow: 0 10px 24px rgba(255, 0, 80, 0.18);
}
.tvd-btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 16px 32px rgba(255, 0, 80, 0.28), 0 0 0 3px rgba(0,242,234,0.25) inset;
  transform: translateY(-1px);
}
.tvd-btn-secondary {
  background: #111827;
  color: #fff;
  font-size: 14px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.tvd-btn-secondary:hover {
  background: linear-gradient(135deg, #1f2937, #111827);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(255,0,80,0.18) inset;
  transform: translateY(-1px);
}
@media (max-width: 520px) {
  .tvd-form {
    flex-direction: column;
  }
  .tvd-input-group {
    flex-wrap: wrap;
    height: auto;
    padding: 6px;
    gap: 8px;
    overflow: visible;
  }
  .tvd-input-group .tvd-input {
    flex: 1 1 100%;
    height: 48px;
    padding-right: 38px;
  }
  .tvd-clear-input {
    right: 16px;
  }
  .tvd-input-group .tvd-button {
    flex: 1 1 calc(50% - 4px);
    height: 48px;
  }
  .tvd-actions {
    width: 100%;
  }
  .tvd-actions .tvd-btn {
    width: 100%;
    text-align: center;
  }
  .tvd-video {
    aspect-ratio: 16 / 9;
  }
}
@media (max-width: 820px) {
  .tvd-grid {
    grid-template-columns: 1fr;
  }
}
.tvd-input-group {
  position: relative;
}
.tvd-clear-input {
  display: none;
  position: absolute;
  right: 210px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 24px;
  font-weight: 500;
  color: #A5365D;
}
.tvd-clear-input:hover {
  color: #fff;
  text-shadow: 0 8px 20px rgba(255, 0, 80, 0.35);
}
.tvd-input:not(:placeholder-shown) + .tvd-clear-input {
  display: block;
}

/* Copy button styles */
.tvd-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  width: 100%;
}

.tvd-title-row .tvd-title {
  margin-bottom: 0;
  flex: 1;
}

.tvd-copy-btn {
  background: #1f2937;
  color: #fff;
  border: 1px solid #374151;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
  transition: all 0.2s;
  height: auto;
  line-height: normal;
}

.tvd-copy-btn:hover {
  background: #A5365D;
  border-color: #4b5563;
}
