/* ==========================================================================
   VeloxCatch - Senior Accessible Design System
   WCAG 2.1 AA Compliant • Zero Inline Styles • High Contrast • Dark Luxury UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Tested for WCAG AA Contrast Ratios */
  --bg-darkest: #07090e;
  --bg-dark: #0d111a;
  --bg-card: #141926;
  --bg-card-hover: #1b2234;
  --bg-elevated: #20283e;
  
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-glow: rgba(139, 92, 246, 0.4);
  --border-active: #8b5cf6;

  /* Vibrant Accents */
  --primary: #8b5cf6;
  --primary-light: #a78bfa;
  --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
  --secondary: #06b6d4;
  --success: #10b981;
  --danger: #f43f5e;
  --danger-bg: rgba(244, 63, 94, 0.15);
  --gold-star: #fbbf24;

  /* Accessible Text Colors (min 4.5:1 contrast against dark background) */
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS Reset & Accessibility Foundation */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-darkest);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Accessible Focus Indicators (WCAG 2.4.7) */
*:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 10000;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visibility Utilities */
.hidden,
[hidden] {
  display: none !important;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Background Ambient Glows */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 50% 15%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-icon-svg {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-gradient);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.logo-text-gradient {
  background: linear-gradient(135deg, #ffffff 40%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  font-weight: 600;
}

.nav-link.active {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switcher Buttons */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* Main Content */
.main-wrapper {
  position: relative;
  z-index: 1;
  flex: 1;
  padding-bottom: 60px;
}

/* Hero Section */
.hero-section {
  padding: 50px 0 32px 0;
  text-align: center;
}

.badge-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--primary-light);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Google SERP Star Rating Widget */
.rating-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fef08a;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.stars-gold {
  color: var(--gold-star);
  letter-spacing: 2px;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheading {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

/* Input Card Form */
.downloader-box {
  max-width: 820px;
  margin: 0 auto 48px auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-glow), var(--shadow-md);
  position: relative;
  backdrop-filter: blur(12px);
}

.form-label {
  display: block;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.input-group-row {
  display: flex;
  gap: 12px;
  position: relative;
}

.input-field-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.input-icon-svg {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: var(--text-dim);
  pointer-events: none;
}

.video-url-input {
  width: 100%;
  padding: 16px 88px 16px 48px;
  background: var(--bg-darkest);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.video-url-input:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.video-url-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
  outline: none;
}

.video-url-input[aria-invalid="true"] {
  border-color: var(--danger);
}

.input-actions-inner {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-btn-sm {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.action-btn-sm:hover {
  background: var(--bg-elevated);
  color: var(--text-main);
}

.submit-btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.submit-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(139, 92, 246, 0.55);
}

.submit-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Live Error Alert */
.form-alert-box {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  color: #fecdd3;
  font-size: 0.9rem;
  text-align: left;
}

.form-alert-box.hidden {
  display: none;
}

.input-hint-row {
  margin-top: 14px;
  text-align: left;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Supported Platform Hub Pills */
.platform-badges-wrapper {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-intro-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.platform-pill:hover,
.platform-pill.active {
  background: var(--bg-elevated);
  border-color: var(--primary-light);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Video Result Card */
.result-section-box {
  max-width: 820px;
  margin: 0 auto 60px auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-glow), var(--shadow-md);
  animation: fadeInDown 350ms ease forwards;
}

.result-section-box.hidden {
  display: none;
}

.result-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.result-heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.reset-button {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.reset-button:hover {
  background: var(--bg-elevated);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.media-preview-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.media-thumbnail-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000000;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 9;
}

.media-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.platform-badge-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.media-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.media-title-text {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
}

.media-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.meta-item strong {
  color: var(--text-main);
  margin-right: 4px;
}

/* Quality Selection Pills */
.quality-selection-wrap {
  margin-top: 8px;
}

.quality-selection-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.quality-pills-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quality-pill {
  background: var(--bg-darkest);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quality-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.quality-pill.active {
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

/* Big Download CTA */
.download-cta-row {
  margin-top: 16px;
}

.download-cta-btn {
  width: 100%;
  background: var(--primary-gradient);
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 22px rgba(139, 92, 246, 0.45);
  transition: all var(--transition-fast);
}

.download-cta-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.6);
}

.download-cta-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Spinner Icon */
.spinner-icon {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 700ms linear infinite;
}

.spinner-icon.hidden {
  display: none;
}

/* SEO Format & Comparison Table Section */
.seo-table-section {
  padding: 50px 0;
  border-top: 1px solid var(--border-subtle);
}

.table-responsive-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  margin-top: 24px;
}

.seo-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}

.seo-data-table th,
.seo-data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.seo-data-table th {
  background: var(--bg-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.seo-data-table tr:last-child td {
  border-bottom: none;
}

.seo-data-table tr:hover td {
  background: rgba(139, 92, 246, 0.05);
}

.tag-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

.tag-badge.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.tag-badge.purple {
  background: rgba(139, 92, 246, 0.15);
  color: var(--primary-light);
}

/* Discreet Google AdSense Containers */
.ad-slot-wrapper {
  margin: 32px auto;
  max-width: 820px;
  text-align: center;
  padding: 12px;
  background: rgba(20, 25, 38, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.ad-slot-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.ad-content-box {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Feature Cards Grid */
.features-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.35);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--primary-light);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* How-To Steps Section */
.howto-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
}

.step-num-badge {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ Accordion / Details Section */
.faq-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: rgba(139, 92, 246, 0.4);
}

.faq-summary {
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary-light);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 24px 20px 24px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* Footer & Silo Hub */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-dark);
  padding: 50px 0 32px 0;
  margin-top: auto;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand {
  max-width: 440px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-disclaimer {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-top: 12px;
  line-height: 1.5;
}

.footer-col-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #ffffff;
}

.footer-bottom-row {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Toast Banner */
.toast-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 99999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.toast-banner.show {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Media Queries - Mobile-First Precision Focus */
@media (max-width: 860px) {
  .nav-menu {
    display: none;
  }
  
  .input-group-row {
    flex-direction: column;
  }

  .submit-btn-primary {
    padding: 16px;
    width: 100%;
  }

  .media-preview-grid {
    grid-template-columns: 1fr;
  }

  .media-thumbnail-wrapper {
    max-height: 260px;
  }

  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Dedicated Smartphone Experience (< 640px) - Input Centered & Focused */
@media (max-width: 640px) {
  .site-header {
    padding: 12px 0;
  }

  .logo-link {
    font-size: 1.2rem;
  }

  .logo-icon-svg {
    width: 30px;
    height: 30px;
  }

  .hero-section {
    padding: 18px 0 16px 0;
  }

  .badge-row {
    margin-bottom: 10px;
    gap: 6px;
  }

  .hero-badge-pill,
  .rating-badge-pill {
    padding: 4px 10px;
    font-size: 0.74rem;
  }

  .hero-heading {
    font-size: clamp(1.65rem, 6.5vw, 2.1rem);
    line-height: 1.16;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
  }

  .hero-subheading {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 16px;
    padding: 0 4px;
    color: var(--text-muted);
  }

  /* Input Card - The Highlight of Mobile View */
  .downloader-box {
    padding: 16px 14px;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
    background: #0d121f;
    border: 1.5px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 28px rgba(139, 92, 246, 0.28), 0 10px 30px rgba(0, 0, 0, 0.7);
  }

  .form-label {
    font-size: 0.88rem;
    margin-bottom: 8px;
    font-weight: 600;
  }

  .input-group-row {
    gap: 10px;
  }

  .input-field-wrapper {
    position: relative;
    width: 100%;
  }

  .video-url-input {
    width: 100%;
    height: 52px;
    padding: 14px 100px 14px 42px;
    font-size: 0.94rem;
    background: #07090e;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-sm);
  }

  .video-url-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.35);
  }

  .input-icon-svg {
    left: 14px;
    width: 18px;
    height: 18px;
  }

  .input-actions-inner {
    right: 8px;
    gap: 4px;
  }

  /* Vibrant Easy-Tap Paste Button */
  .action-btn-sm {
    background: rgba(139, 92, 246, 0.22);
    border: 1px solid rgba(139, 92, 246, 0.45);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 6px;
  }

  .action-btn-sm:active {
    background: var(--primary);
  }

  .submit-btn-primary {
    height: 52px;
    font-size: 1.05rem;
    font-weight: 800;
    width: 100%;
    margin-top: 2px;
    border-radius: var(--radius-sm);
  }

  .submit-btn-primary:active {
    transform: scale(0.98);
  }

  .input-hint-row {
    font-size: 0.78rem;
    margin-top: 10px;
  }

  /* Horizontal swipeable platform pill row on mobile */
  .platform-badges-wrapper {
    margin-top: 16px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    justify-content: flex-start;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .platform-badges-wrapper::-webkit-scrollbar {
    display: none;
  }

  .platform-intro-label {
    display: none;
  }

  .platform-pill {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  .ad-slot-wrapper {
    margin: 20px auto;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
}
