/* ==========================================================================
   TwiVideo (twivideo.app) - Core Design System & Utilities
   Optimized for 100/100 Core Web Vitals & Premium Aesthetics
   Theme: Clean Light Mode with Vibrant Twitter Sky Blue Gradient (#009ffc)
   ========================================================================== */

:root {
  /* Color Palette - Vibrant Twitter Sky Blue & Clean Modern Hues */
  --primary: #009ffc;
  --primary-hover: #0086d6;
  --primary-light: #e0f4ff;
  --primary-dark: #006eb4;
  --accent: #1d9bf0;
  --accent-gradient: linear-gradient(135deg, #009ffc 0%, #008be5 50%, #0077cc 100%);
  --hero-gradient: linear-gradient(135deg, #009ffc 0%, #008be5 50%, #006eb4 100%);
  --success: #10b981;
  --success-hover: #059669;
  --purple: #8b5cf6;
  --purple-hover: #7c3aed;

  /* Surfaces & Backgrounds (Pure Light Mode - No Eye Fatigue) */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.96);
  --bg-muted: #f1f5f9;
  --bg-dark: #0f172a;

  /* Typography */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --text-sub: #475569;

  /* Borders & Shadows */
  --border-color: #e2e8f0;
  --border-focus: #009ffc;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.06);
  --shadow-xl: 0 20px 35px -10px rgba(0, 159, 252, 0.22);
  --shadow-glow: 0 8px 24px -4px rgba(0, 159, 252, 0.4);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 2px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-main);
}

.brand-logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 159, 252, 0.3);
  object-fit: cover;
}

.brand-text span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-sub);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Dropdown Selector */
.lang-select-wrap {
  position: relative;
  display: inline-block;
}

.lang-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-select-btn:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 170px;
  padding: 0.5rem 0;
  z-index: 100;
  display: none;
  flex-direction: column;
}

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

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.lang-dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.lang-dropdown-item.active {
  font-weight: 700;
  color: var(--primary);
  background: #f0f9ff;
}

/* RTL Support for Arabic (/ar/) */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .input-form {
  direction: ltr;
}

[dir="rtl"] .url-input {
  direction: ltr;
  text-align: left;
}

[dir="rtl"] .nav-wrap {
  flex-direction: row-reverse;
}

[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
  text-align: left;
}

/* ==========================================================================
   Hero Section with Classic Twitter Sky Blue Gradient (#009ffc)
   ========================================================================== */
.hero-section {
  position: relative;
  background: var(--hero-gradient);
  color: var(--text-light);
  padding: 3.5rem 0 5rem;
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.16) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.hero-desc {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.94);
  max-width: 680px;
  margin: 0 auto 2.25rem;
  font-weight: 400;
}

/* Hero Downloader Card */
.downloader-box {
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.4);
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.input-form {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  gap: 0.75rem;
  transition: all var(--transition-fast);
}

.input-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 159, 252, 0.15);
}

.input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.url-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  color: var(--text-main);
  padding: 0.65rem 0;
  outline: none;
  font-family: inherit;
}

.url-input::placeholder {
  color: #94a3b8;
}

.input-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-paste, .btn-clear {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-muted);
  color: var(--text-sub);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

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

.btn-clear {
  padding: 0.55rem;
  display: none;
}

.btn-clear:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--accent-gradient);
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-download:hover {
  background: linear-gradient(135deg, #008be5 0%, #0077cc 50%, #0062a3 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -4px rgba(0, 159, 252, 0.5);
}

.btn-download:active {
  transform: translateY(1px);
}

/* Cloudflare Turnstile Verification Widget */
.turnstile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem auto 0.25rem;
  min-height: 65px;
  width: 100%;
}

/* Disclaimer text under input */
.downloader-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* ==========================================================================
   Loading State & Alert Message
   ========================================================================== */
.alert-box {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin: 1.25rem auto 0;
  max-width: 780px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.loader-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
  gap: 1rem;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 159, 252, 0.2);
  border-left-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loader-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

/* ==========================================================================
   Result Card Section
   ========================================================================== */
.result-section {
  display: none;
  padding: 2.5rem 0 3.5rem;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  max-width: 860px;
  margin: 0 auto;
}

.result-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.media-preview-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000000;
  box-shadow: var(--shadow-md);
}

.media-thumbnail {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.media-badge-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.result-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.author-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.author-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.author-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tweet-text-content {
  font-size: 0.98rem;
  color: var(--text-sub);
  line-height: 1.55;
  background: var(--bg-muted);
  padding: 1rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  max-height: 120px;
  overflow-y: auto;
}

.download-options-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.download-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-res-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-res-1080p {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 159, 252, 0.25);
}

.btn-res-1080p:hover {
  background: linear-gradient(135deg, #008be5 0%, #006eb4 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-res-720p {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.btn-res-720p:hover {
  background: #e0f2fe;
  color: #0369a1;
}

.btn-res-480p {
  background: var(--bg-muted);
  color: var(--text-sub);
  border: 1px solid var(--border-color);
}

.btn-res-480p:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.btn-res-mp3 {
  background: #f5f3ff;
  color: var(--purple-hover);
  border: 1px solid #ddd6fe;
}

.btn-res-mp3:hover {
  background: #ede9fe;
  color: #6d28d9;
}

.btn-res-download .btn-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.btn-reset-wrap {
  margin-top: 0.5rem;
}

.btn-reset {
  width: 100%;
  background: transparent;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
  padding: 0.75rem;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-reset:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ==========================================================================
   Features Section (Why Choose TwiVideo)
   ========================================================================== */
.features-section {
  padding: 4.5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

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

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

.feature-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #bae6fd;
}

.feature-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   How to Download Section (3D Step Cards)
   ========================================================================== */
.steps-section {
  padding: 5rem 0;
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f9ff;
  contain: paint;
}

.step-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  content-visibility: auto;
}

.step-card:hover .step-img-wrap img {
  transform: scale(1.04);
}

.step-body {
  padding: 1.75rem;
}

.step-num {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.step-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

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

/* ==========================================================================
   FAQ Section (Accordion)
   ========================================================================== */
.faq-section {
  padding: 5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-item.active {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: transparent;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-sub);
  font-size: 0.98rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 1.5rem 1.25rem;
}

/* ==========================================================================
   Comprehensive SEO Content Section (Rich Typography & Comparison Table)
   ========================================================================== */
.seo-content-section {
  padding: 5rem 0;
  background: var(--bg-main);
  border-top: 1px solid var(--border-color);
}

.seo-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 980px;
  margin: 0 auto;
}

.seo-article-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 2.75rem 0 1rem;
  color: var(--text-main);
  position: relative;
  padding-bottom: 0.5rem;
}

.seo-article-card h2:first-of-type {
  margin-top: 0;
}

.seo-article-card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.seo-article-card h3 {
  font-size: 1.3rem;
  margin: 1.75rem 0 0.6rem;
  color: var(--text-main);
}

.seo-article-card p {
  color: var(--text-sub);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.seo-article-card ul, .seo-article-card ol {
  margin-left: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-sub);
  font-size: 1.05rem;
  line-height: 1.85;
}

.seo-article-card li {
  margin-bottom: 0.5rem;
}

.seo-callout-box {
  background: #f0f9ff;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  color: #0369a1;
  font-size: 0.98rem;
  line-height: 1.65;
}

.seo-callout-box strong {
  color: #0c4a6e;
}

/* Comparison Table */
.table-responsive-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #ffffff;
  font-size: 0.95rem;
}

.comparison-table th, .comparison-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: #f8fafc;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.comparison-table tr:hover td {
  background: #f0f9ff;
}

.table-badge-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #e0f4ff;
  color: #0077cc;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.75rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--text-sub);
  font-size: 0.9rem;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-disclaimer {
  max-width: 760px;
  margin: 0.5rem auto 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 860px) {
  .result-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .media-thumbnail {
    aspect-ratio: 16 / 9;
    max-height: 280px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 2.5rem 0 4rem;
  }

  .input-form {
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .input-icon {
    display: none;
  }

  .url-input {
    width: 100%;
    text-align: center;
    padding: 0.4rem 0;
  }

  .input-actions {
    width: 100%;
    justify-content: center;
  }

  .btn-download {
    width: 100%;
  }

  .nav-links {
    display: none;
  }
}
