/* Modern SaaS-style video result card */
.video-result-card {
  background: rgba(255,255,255,0.96);
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px 0 rgba(31, 38, 135, 0.10);
  padding: 1.5rem 1.3rem 1.1rem 1.3rem;
  max-width: 370px;
  margin: 2rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  border: 1.5px solid #f2f4f8;
}

.video-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.video-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.video-username {
  font-weight: 700;
  color: #1b8c2c;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.video-size {
  font-size: 0.97rem;
  color: #7a8a99;
  font-weight: 500;
  background: #f4fff7;
  border-radius: 0.7em;
  padding: 0.18em 0.7em;
}

.video-caption {
  color: #4a5568;
  font-size: 1.01rem;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 0.1rem;
}

.video-meta-row {
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.quality-selector {
  display: flex;
  gap: 0.5rem;
}

.quality-pill {
  background: #f3f6fa;
  color: #1b8c2c;
  border: none;
  border-radius: 1.2em;
  padding: 0.32em 1.1em;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
  box-shadow: 0 1px 4px #43ea5e11;
}

.quality-pill.selected,
.quality-pill:active {
  background: linear-gradient(90deg, #43ea5e 0%, #1b8c2c 100%);
  color: #fff;
  box-shadow: 0 2px 8px #43ea5e22;
}

.quality-pill:hover {
  background: #e3e8f7;
  color: #1b8c2c;
}

.download-actions.integrated {
  margin-top: 0.7rem;
  padding-top: 1.1rem;
  border-top: 1px solid #f2f4f8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

@media (max-width: 600px) {
  .video-result-card {
    padding: 1.1rem 0.5rem 0.7rem 0.5rem;
    max-width: 100%;
  }
  .video-username {
    font-size: 1rem;
  }
  .video-size {
    font-size: 0.93rem;
    padding: 0.15em 0.5em;
  }
  .video-caption {
    font-size: 0.97rem;
  }
  .quality-pill {
    font-size: 0.95rem;
    padding: 0.28em 0.8em;
  }
}
/* Extracted from index.html */
:root {
  --primary: #1da1f2;
  --secondary: #6f86ff;
  --bg: #f8fafc;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.10);
  --font-main: 'Inter', Arial, sans-serif;
  --max-width: 1200px;
  --hero-gradient: linear-gradient(90deg, #1da1f2 0%, #6f86ff 100%);
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: #222;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
header {
  width: 100vw;
  background: var(--hero-gradient);
  color: var(--white);
  padding: 3.5rem 1rem 2.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}
header h1 {
  font-size: 2.7rem;
  margin: 0 0 1.1rem 0;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}
header p {
  font-size: 1.25rem;
  margin: 0 auto 1.7rem auto;
  opacity: 0.97;
  max-width: 600px;
}
.downloader-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: center;
  max-width: 540px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.2rem 0.2rem 1.2rem;
  position: relative;
  z-index: 2;
}
.downloader-form input[type="text"] {
  padding: 1.1rem;
  border-radius: var(--radius);
  border: 1px solid #e3e8f7;
  font-size: 1.15rem;
  background: #f3f6fa;
  outline: none;
  width: 100%;
  transition: box-shadow 0.2s;
}
.downloader-form input[type="text"]:focus {
  box-shadow: 0 2px 8px #1da1f233;
}
.downloader-form button {
  background: var(--hero-gradient);
  color: var(--white);
  border: none;
  padding: 1.1rem 0;
  border-radius: var(--radius);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 2px 8px #1da1f233;
  transition: background 0.2s;
}
.downloader-form button:hover {
  background: linear-gradient(90deg, #6f86ff 0%, #1da1f2 100%);
}
.video-preview {
  margin: 1.5rem auto 0 auto;
  text-align: center;
  max-width: 540px;
  display: none;
}
.video-preview video {
  max-width: 260px;
  width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px #1da1f233;
}
.ad-space {
  width: 100%;
  min-height: 90px;
  background: #f3f6fa;
  border-radius: var(--radius);
  margin: 2.5rem 0 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 1rem;
  border: 1px dashed #e3e8f7;
}
main {
  width: 100vw;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.2rem 2rem 1.2rem;
  box-sizing: border-box;
}
.section {
  margin: 3.5rem 0 0 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--primary);
  line-height: 1.2;
}
.section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: var(--secondary);
}
.howto-steps {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.howto-step {
  flex: 1 1 180px;
  background: #f3f6fa;
  border-radius: var(--radius);
  padding: 1.2rem 0.7rem;
  text-align: center;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px #0001;
  min-width: 180px;
}
.howto-step svg {
  width: 38px;
  height: 38px;
  margin-bottom: 0.7rem;
  color: var(--primary);
}
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1rem;
}
.feature {
  flex: 1 1 200px;
  background: #f3f6fa;
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  box-shadow: 0 1px 4px #0001;
  font-weight: 700;
  color: #222;
  min-width: 200px;
}
.cta-section {
  background: var(--hero-gradient);
  color: var(--white);
  border-radius: var(--radius);
  text-align: center;
  padding: 2.5rem 1rem;
  margin: 3.5rem 0 0 0;
  box-shadow: var(--shadow);
}
.cta-section h2 {
  color: var(--white);
  margin-bottom: 0.7rem;
  font-size: 2rem;
}
.faq {
  margin-top: 1.5rem;
}
.faq-item {
  margin-bottom: 1.7rem;
}
.faq-item h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
  font-weight: 700;
}
.faq-item p {
  margin: 0;
  color: #333;
  font-size: 1.05rem;
}
.internal-links {
  margin: 2.5rem 0 0 0;
  text-align: center;
  font-size: 1.05rem;
}
.internal-links a {
  color: var(--primary);
  margin: 0 0.7rem;
  text-decoration: underline;
  font-weight: 600;
}
.blog-section {
  margin: 3.5rem 0 0 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.blog-section h2 {
  font-size: 1.7rem;
  color: var(--secondary);
  margin-bottom: 1.2rem;
}
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.blog-item {
  background: #f3f6fa;
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 1px 4px #0001;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  transition: background 0.2s;
}
.blog-item:hover {
  background: #e3e8f7;
}
@media (max-width: 900px) {
  .section, .blog-section { max-width: 100vw; }
}
@media (max-width: 700px) {
  .howto-steps, .features-list { flex-direction: column; gap: 0.7rem; }
  .feature, .howto-step { min-width: 0; }
}
@media (max-width: 600px) {
  header h1 { font-size: 2rem; }
  .section h2, .cta-section h2 { font-size: 1.3rem; }
  main { padding: 0 0.2rem 2rem 0.2rem; }
  .btn-main-download, .btn-alt-download { font-size: 1rem; max-width: 100%; }
  .btn-alt-download:last-child { width: 100%; max-width: 100%; }
}
.download-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  background: none;
  box-shadow: none;
  margin: 2rem 0 0 0;
}

/* Primary: No Watermark */
.btn-main-download {
  display: block;
  min-width: 180px;
  padding: 0.85rem 2.2rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #43ea5e 0%, #1b8c2c 100%);
  border: none;
  border-radius: 2.2rem;
  box-shadow: 0 2px 12px 0 rgba(67, 234, 94, 0.10);
  cursor: pointer;
  transition: 
    transform 0.18s cubic-bezier(.4,2,.6,1),
    box-shadow 0.18s,
    background 0.18s;
  margin-bottom: 0.2rem;
}
.btn-main-download:hover,
.btn-main-download:focus {
  transform: scale(1.03);
  box-shadow: 0 4px 24px 0 rgba(67, 234, 94, 0.22), 0 0 0 4px rgba(67, 234, 94, 0.10);
  background: linear-gradient(90deg, #1b8c2c 0%, #43ea5e 100%);
  outline: none;
}

/* Secondary: With Watermark */
.btn-alt-download {
  display: block;
  min-width: 160px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: #1b8c2c;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 2rem;
  box-shadow: 0 1px 6px 0 rgba(67, 234, 94, 0.06);
  cursor: pointer;
  transition: 
    background 0.16s,
    border-color 0.16s,
    color 0.16s,
    transform 0.16s;
  margin-bottom: 0.2rem;
}
.btn-alt-download:hover,
.btn-alt-download:focus {
  background: #f4fff7;
  border-color: #43ea5e;
  color: #0d4d1a;
  transform: scale(1.03);
  outline: none;
}

/* Outline: MP3 */
.btn-mp3-download {
  display: block;
  min-width: 140px;
  padding: 0.7rem 1.7rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: #1b8c2c;
  background: transparent;
  border: 2px solid;
  border-radius: 1.8rem;
  border-image: linear-gradient(90deg, #43ea5e 0%, #1b8c2c 100%);
  border-image-slice: 1;
  box-shadow: none;
  cursor: pointer;
  transition: 
    color 0.16s,
    border-color 0.16s,
    background 0.16s,
    transform 0.16s;
  margin-bottom: 0.1rem;
}
.btn-mp3-download:hover,
.btn-mp3-download:focus {
  color: #fff;
  background: linear-gradient(90deg, #43ea5e 0%, #1b8c2c 100%);
  transform: scale(1.03);
  outline: none;
}

/* Spacing and Centering */
.download-actions > * {
  margin-left: 0;
  margin-right: 0;
}

/* Responsive: Mobile */
@media (max-width: 600px) {
  .download-actions {
    padding: 1.1rem 0.5rem;
    gap: 0.7rem;
  }
  .btn-main-download {
    min-width: 0;
    width: 100%;
    font-size: 1rem;
    padding: 0.8rem 0;
  }
  .btn-alt-download,
  .btn-mp3-download {
    min-width: 0;
    width: 100%;
    font-size: 0.97rem;
    padding: 0.7rem 0;
  }
}
.video-info {
  margin: 1.2rem auto 0.7rem auto;
  background: rgba(255,255,255,0.82);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  padding: 1.1rem 1rem 0.7rem 1rem;
  max-width: 340px;
  text-align: left;
  font-size: 1.04rem;
  color: #222;
  backdrop-filter: blur(8px);
  border: 1.5px solid #e3e8f7;
}
.video-info strong { color: var(--primary); }
.quality-options {
  margin: 0.7rem 0 1.1rem 0;
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.quality-btn {
  background: #e3e8f7;
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  padding: 0.35rem 1.1rem;
  font-size: 0.98rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.18s;
}
.quality-btn.selected, .quality-btn:active {
  background: var(--primary);
  color: #fff;
}
.download-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.1rem;
  align-items: center;
}
