/* ==========================================================================
   SSYouTube - Modern, High-Performance, SEO-Optimized Downloader Styles
   ========================================================================== */

:root {
  --primary: #0084ff;
  --primary-hover: #0070db;
  --primary-light: #edf5ff;
  --primary-border: #d4e7fc;
  --text-dark: #0f2744;
  --text-body: #3b4d61;
  --text-muted: #64748b;
  --card-bg: #f2f7fc;
  --border-light: #e2e8f0;
  --border-faq: #e5edf5;
  --bg-white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(15, 39, 68, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 132, 255, 0.08);
  --radius-lg: 14px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-body);
  background-color: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* space for sticky bottom ad */
  top: 0px !important;
}

/* Hide default Google Translate widgets for seamless native design */
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
}

body > .skiptranslate {
  display: none !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  border-bottom: 1px solid #f0f4f8;
  background-color: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.header-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  text-decoration: none !important;
}

.logo-ss {
  color: var(--primary);
}

.logo-youtube {
  color: var(--text-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  color: var(--text-body);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none !important;
  transition: color 0.2s;
}

.nav-item:hover,
.nav-item.active {
  color: var(--primary);
  font-weight: 600;
}

.lang-selector-wrapper {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.lang-btn:hover {
  background: #f1f5f9;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  min-width: 150px;
  z-index: 200;
  padding: 6px 0;
}

.lang-dropdown.show {
  display: flex;
}

.lang-option {
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--text-body);
  text-decoration: none !important;
}

.lang-option:hover,
.lang-option.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   Advertisement Slots
   ========================================================================== */

.ad-container {
  display: flex;
  justify-content: center;
  margin: 18px auto;
  max-width: 1080px;
  padding: 0 20px;
}

.ad-slot {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s ease;
}

.ad-728x90 {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  padding: 10px;
}

.ad-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 9px;
  color: #94a3b8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 700;
}

.ad-placeholder-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ad-placeholder-text span {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.ad-placeholder-text small {
  font-size: 11px;
  color: #94a3b8;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */

.main-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}

/* Converter Box */
.converter-box {
  max-width: 720px;
  margin: 0 auto 24px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.url-input {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 20px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-dark);
  background-color: var(--bg-white);
  border: 1.5px solid #d9e3ed;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.url-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.15);
}

.url-input::placeholder {
  color: #94a3b8;
  font-size: 14.5px;
}

.btn-clear {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 16px;
  padding: 4px;
}

.btn-clear:hover {
  color: var(--text-dark);
}

.button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn {
  height: 44px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-download {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 132, 255, 0.25);
}

.btn-download:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-paste {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.btn-paste:hover {
  background-color: #e0eeff;
}

/* Result Card */
.result-card {
  max-width: 720px;
  margin: 24px auto 30px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  text-align: left;
}

.result-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.result-thumb-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 220px;
  height: 124px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.result-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.result-info {
  flex: 1;
}

.result-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 6px;
}

.result-channel {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.format-options {
  margin-bottom: 16px;
}

.format-options label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.format-select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
}

.ad-result-slot {
  width: 100%;
  min-height: 180px;
  margin-top: 16px;
}

/* MP3 & MP4 Iframe API Widget Containers */
.mp3-api-wrapper,
.mp4-api-wrapper {
  background: #f0f7ff;
  border: 1.5px solid #d4e7fc;
  border-radius: 10px;
  padding: 14px;
  margin-top: 16px;
  box-shadow: 0 2px 8px rgba(0, 132, 255, 0.05);
}

.mp3-api-label,
.mp4-api-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-bar-container {
  margin-top: 14px;
  background: #f1f5f9;
  border-radius: 6px;
  height: 22px;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill {
  background: linear-gradient(90deg, #0084ff, #00b4d8);
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Intro Paragraph */
.intro-description {
  max-width: 780px;
  margin: 32px auto 0;
  text-align: left;
}

.intro-description p {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 16px;
}

.intro-description strong {
  color: var(--primary);
}

/* ==========================================================================
   Section Headers & Cards
   ========================================================================== */

.section {
  margin-top: 48px;
}

.section-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

/* Steps Section */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.15s ease;
}

.step-card:hover {
  transform: translateY(-1px);
}

.step-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.step-content {
  flex: 1;
}

.step-heading {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  display: inline;
}

.step-text {
  font-size: 13.5px;
  color: #4a5c6e;
  line-height: 1.6;
  display: inline;
}

/* Overview Section */
.bullet-list {
  list-style: none;
  margin-bottom: 20px;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: #4a5c6e;
  line-height: 1.65;
  margin-bottom: 14px;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 18px;
  color: var(--text-dark);
}

.bullet-list li strong {
  color: var(--text-dark);
  font-weight: 700;
}

.overview-subtext {
  font-size: 13.5px;
  color: #4a5c6e;
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Badges */
.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.badge:hover {
  background-color: #dcebff;
}

.pill-badges .check-badge {
  font-size: 13px;
  padding: 7px 18px;
}

/* Devices Section */
.devices-text {
  font-size: 13.5px;
  color: #4a5c6e;
  line-height: 1.65;
  margin-bottom: 20px;
}

/* FAQ Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-card {
  border: 1px solid var(--border-faq);
  border-radius: 10px;
  padding: 18px 22px;
  background-color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 13.5px;
  color: #4a5c6e;
  line-height: 1.65;
}

/* ==========================================================================
   Sticky Bottom Ad Banner
   ========================================================================== */

.sticky-bottom-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  padding: 8px 16px;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sticky-ad-wrapper {
  position: relative;
  width: 100%;
  max-width: 728px;
  min-height: 50px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-ad-content {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
}

.sticky-ad-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 22px;
  height: 22px;
  background: #0f2744;
  color: #fff;
  border-radius: 50%;
  border: none;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid #f0f4f8;
  padding: 36px 20px 48px;
  background: #ffffff;
  text-align: center;
}

.footer-container {
  max-width: 820px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 13.5px;
  color: #64748b;
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-disclaimer {
  font-size: 12.5px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.footer-copyright {
  font-size: 12.5px;
  color: #94a3b8;
}

.footer-copyright a {
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
  }

  .nav-links {
    display: none; /* Hide on small mobile, kept clean */
  }

  .result-inner {
    flex-direction: column;
  }

  .result-thumb-wrapper {
    width: 100%;
    height: 190px;
  }

  .button-row {
    flex-direction: row;
    width: 100%;
  }

  .btn {
    flex: 1;
  }

  .step-card {
    padding: 16px;
  }

  .badge-group {
    gap: 8px;
  }

  .badge {
    font-size: 12px;
    padding: 5px 12px;
  }
}
