/* ==========================================================================
   VideoMax - High-Performance Online Video Downloader
   Strict BEM Architecture & Zero Remote Dependencies
   ========================================================================== */

/* --- 1. Local Font Declarations (No third-party requests) --- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/outfit-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/outfit-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/outfit-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/outfit-800.ttf') format('truetype');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plusjakarta-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/plusjakarta-600.ttf') format('truetype');
}

/* --- 2. CSS Reset & Variables --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #e62b33;
  --color-primary-hover: #cf222a;
  --color-primary-glow: rgba(230, 43, 51, 0.25);

  --color-dark-bg: #141619;
  --color-dark-card: #1a1d21;
  --color-dark-card-hover: #22252a;
  --color-dark-pill: #1f2227;

  --color-text-main: #111315;
  --color-text-muted: #6b7280;
  --color-text-light: #9ca3af;
  --color-text-white: #ffffff;

  --color-card-bg: #ffffff;
  --color-card-subtle: #f8f9fa;
  --color-border-subtle: #e5e7eb;
  --color-border-dark: #2a2d33;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-pill: 9999px;
  --radius-card: 28px;
  --radius-hero: 36px;
  --radius-thumb: 14px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 8px 25px rgba(230, 43, 51, 0.35);

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-body {
  font-family: var(--font-body);
  background: #ffffff;
  color: var(--color-text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.app {
  background: #ffffff;
  width: 100%;
  padding: 16px 0 48px;
}

/* --- 4. Navbar --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px 24px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.navbar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navbar__brand-text {
  display: flex;
  flex-direction: column;
}

.navbar__brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.navbar__brand-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

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

.navbar__lang-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--color-card-subtle);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.navbar__lang-selector:hover {
  background: #f1f3f5;
  border-color: #d1d5db;
}

.navbar__flag-icon {
  border-radius: 2px;
  display: block;
}

.navbar__lang-text {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.navbar__chevron-icon {
  color: var(--color-text-muted);
}

.navbar__tools-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-card-subtle);
  border: 1px solid var(--color-border-subtle);
  border-radius: 50%;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.navbar__tools-btn:hover {
  background: #111315;
  color: #ffffff;
  border-color: #111315;
}

/* --- 5. Hero Section --- */
.hero {
  position: relative;
  background: #eef1f4;
  border-radius: var(--radius-hero);
  overflow: hidden;
  padding: 42px 28px 48px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}

.hero__bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: grayscale(100%) contrast(1.05);
}

.hero__bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(238, 241, 244, 0.88) 0%, rgba(238, 241, 244, 0.96) 60%, #eef1f4 100%);
}

.hero__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero__squiggle {
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 14px;
}

.hero__subtitle {
  font-size: 0.94rem;
  color: var(--color-text-muted);
  max-width: 580px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.hero__subtitle-highlight {
  color: var(--color-primary);
  font-weight: 700;
}

/* Mobile carousel dashes */
.hero__indicators {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.hero__indicator-dash {
  width: 24px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: #cbd5e1;
}

.hero__indicator-dash--active {
  background: var(--color-primary);
  width: 32px;
}

/* Action Area (Search / Results) */
.hero__action-area {
  width: 100%;
  max-width: 720px;
  margin-bottom: 24px;
}

/* Default Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: var(--radius-pill);
  padding: 6px 8px 6px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
}

.search-bar:focus-within {
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.12), 0 0 0 3px rgba(230, 43, 51, 0.2);
  border-color: rgba(230, 43, 51, 0.3);
}

.search-bar__left {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
}

.search-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-bar__input {
  width: 100%;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-main);
  background: transparent;
}

.search-bar__input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.search-bar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-bar__paste-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  color: #6b7280;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-bar__paste-btn:hover {
  background: #e5e7eb;
  color: #111315;
}

.search-bar__submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  outline: none;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(230, 43, 51, 0.35);
  transition: all var(--transition-fast);
}

.search-bar__submit-btn:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.search-bar__submit-btn:active {
  transform: translateY(0);
}

.search-bar__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.search-bar__submit-btn--loading .search-bar__spinner {
  display: block;
}

.search-bar__submit-btn--loading .search-bar__btn-text {
  display: none;
}

/* Error Banner */
.hero__error-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 14px;
}

.hero__error-banner--hidden {
  display: none;
}

/* --- 6. Link Inserted State (samples/after inserting link.png) --- */
.result-card-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.result-card-container--hidden {
  display: none;
}

/* Active URL Pill Bar */
.active-url-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: var(--radius-pill);
  padding: 10px 14px 10px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.active-url-bar__link-wrapper {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80%;
  text-align: left;
}

.active-url-bar__link {
  font-size: 0.94rem;
  font-weight: 500;
  color: #111315;
  text-decoration: underline;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.active-url-bar__clear-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f3f4f6;
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.active-url-bar__clear-btn:hover {
  background: #e5e7eb;
  color: #111315;
}

.active-url-bar__clear-icon {
  font-size: 1rem;
  line-height: 1;
}

/* Sleek Video Result Card */
.result-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.09), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f3f5;
  overflow: hidden;
  text-align: left;
}

.result-card__body {
  display: flex;
  gap: 22px;
  padding: 20px 22px 18px;
}

.result-card__thumb-wrapper {
  position: relative;
  width: 220px;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #111315;
}

.result-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.result-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.result-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: #111315;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-card__author {
  font-size: 0.86rem;
  color: #6b7280;
  margin-bottom: 14px;
}

/* 5 Badges */
.result-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.result-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #b5b5b5;
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.result-badge__icon {
  display: block;
}

/* Result Card Controls (Footer Bar) */
.result-card__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: #eef1f4;
  border-top: 1px solid #e5e7eb;
}

.result-card__quality-box {
  position: relative;
  display: flex;
  align-items: center;
}

.result-card__select {
  appearance: none;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-pill);
  padding: 8px 34px 8px 18px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: #111315;
  cursor: pointer;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.result-card__select:hover {
  border-color: #9ca3af;
}

.result-card__select:focus {
  border-color: var(--color-primary);
}

.result-card__select-arrow {
  position: absolute;
  right: 12px;
  pointer-events: none;
  display: flex;
  align-items: center;
  color: #4b5563;
}

.result-card__download-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #24282e 0%, #111315 100%);
  color: #ffffff;
  border: 1px solid #2d3138;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}

.result-card__download-btn:hover {
  background: linear-gradient(180deg, #30353c 0%, #171a1d 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.result-card__download-btn:active {
  transform: translateY(0);
}

.result-card__download-btn--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* Result Progress Bar */
.result-progress {
  padding: 14px 22px 18px;
  background: #ffffff;
  border-top: 1px solid #f1f3f5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-progress--hidden {
  display: none;
}

.result-progress__info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.result-progress__percent {
  color: var(--color-primary);
  font-weight: 700;
}

.result-progress__bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.result-progress__fill {
  width: var(--progress, 0%);
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.result-progress__sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #6b7280;
}

.result-progress__actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.result-progress__actions--hidden {
  display: none;
}

.result-progress__action-btn {
  padding: 6px 16px;
  background: #111315;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.result-progress__action-btn:hover {
  background: var(--color-primary);
}

/* Supported Platforms Pill */
.hero__platforms {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--color-dark-bg);
  border-radius: var(--radius-pill);
  padding: 9px 24px;
  color: #ffffff;
  margin-top: 8px;
}

.hero__platforms-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e5e7eb;
}

.hero__platforms-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero__platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0.9;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.hero__platform-icon:hover {
  opacity: 1;
  transform: scale(1.15);
}

.hero__doodle {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* --- 7. Secondary Promo Banner --- */
.promo {
  text-align: center;
  padding: 10px 16px 44px;
}

.promo__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.promo__badge {
  display: inline-block;
  background: var(--color-primary);
  color: #ffffff;
  padding: 2px 14px;
  border-radius: var(--radius-pill);
  vertical-align: middle;
  font-size: 0.88em;
}

.promo__subtitle {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 22px;
}

.promo__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.promo__link-btn {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  padding: 8px 12px;
  transition: color var(--transition-fast);
}

.promo__link-btn:hover {
  color: var(--color-primary);
}

.promo__cta-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-dark-bg);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 11px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: all var(--transition-fast);
}

.promo__cta-btn:hover {
  background: #000000;
  transform: translateX(2px);
}

/* --- 8. "How to use" Section --- */
.guide {
  padding: 20px 10px 50px;
}

.guide__header {
  text-align: center;
  margin-bottom: 40px;
}

.guide__eyebrow {
  font-size: 0.94rem;
  color: var(--color-text-muted);
  display: block;
  font-weight: 500;
  margin-bottom: 2px;
}

.guide__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-text-main);
}

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

.guide__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.guide__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.guide__blob-bg {
  position: absolute;
  width: 290px;
  height: 290px;
  background: var(--color-primary);
  border-radius: 40% 60% 65% 35% / 40% 45% 55% 60%;
  z-index: 1;
}

.guide__photo {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 24px;
  display: block;
}

.guide__steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.guide__step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.guide__step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.guide__step-num--outlined {
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  background: #ffffff;
}

.guide__step-num--solid {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(230, 43, 51, 0.35);
}

.guide__step-text {
  padding-top: 4px;
}

.guide__step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.guide__step-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- 9. 3 Dark Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 50px;
}

.dark-card {
  background: var(--color-dark-bg);
  border-radius: 20px;
  padding: 24px 22px;
  color: #ffffff;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.dark-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.dark-card__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #ffffff;
}

.dark-card__text {
  font-size: 0.84rem;
  color: #9ca3af;
  line-height: 1.5;
}

/* --- 10. "Why To Choose" Section --- */
.benefits {
  padding: 20px 10px 50px;
  text-align: center;
}

.benefits__header {
  margin-bottom: 40px;
}

.benefits__eyebrow {
  font-size: 0.94rem;
  color: var(--color-text-muted);
  display: block;
  font-weight: 500;
  margin-bottom: 2px;
}

.benefits__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-text-main);
}

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

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  position: relative;
}

.benefit-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: #e5e7eb;
}

.benefit-item__icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: border-color var(--transition-fast);
}

.benefit-item:hover .benefit-item__icon-wrap {
  border-color: var(--color-primary);
}

.benefit-item__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.benefit-item__desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- 11. FAQ Section --- */
.faq {
  position: relative;
  background: var(--color-dark-bg);
  border-radius: 32px;
  padding: 44px 36px 48px;
  color: #ffffff;
  overflow: hidden;
  margin-bottom: 30px;
}

.faq__contour-art {
  position: absolute;
  top: 0;
  right: 0;
  pointer-events: none;
  opacity: 0.4;
}

.faq__header {
  text-align: center;
  margin-bottom: 34px;
}

.faq__eyebrow {
  font-size: 0.94rem;
  color: #9ca3af;
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}

.faq__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.faq__title-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #ffffff;
  padding: 2px 16px;
  border-radius: var(--radius-pill);
}

.faq__accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 12px 4px;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-item__header:hover {
  color: #e5e7eb;
}

.faq-item__arrow {
  transition: transform var(--transition-fast);
  color: #9ca3af;
  flex-shrink: 0;
}

.faq-item--open .faq-item__arrow {
  transform: rotate(180deg);
}

.faq-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item--open .faq-item__body {
  max-height: 200px;
}

.faq-item__answer {
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1.6;
  padding: 4px 4px 12px;
}

/* --- 12. Footer --- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 8px 8px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text-main);
}

.footer__links {
  display: flex;
  gap: 16px;
}

.footer__link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-primary);
}

/* --- 13. Diagnostics & Tools Modal --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.modal--hidden {
  display: none;
}

.modal__dialog {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #111315;
}

.modal__subtitle {
  font-size: 0.84rem;
  color: #6b7280;
}

.modal__close-btn {
  background: #f3f4f6;
  border: none;
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__status-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.modal__status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #f3f4f6;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

.modal__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.modal__form-group {
  margin-bottom: 18px;
}

.modal__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
}

.modal__input-row {
  display: flex;
  gap: 8px;
}

.modal__input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.modal__btn {
  background: #111315;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
}

.modal__btn--secondary {
  background: #e5e7eb;
  color: #111315;
}

.modal__btn--accent {
  width: 100%;
  background: var(--color-primary);
  padding: 10px 16px;
  border-radius: 12px;
}

.modal__log-box {
  margin-top: 10px;
  background: #111315;
  border-radius: 10px;
  padding: 10px;
  max-height: 120px;
  overflow-y: auto;
}

.modal__log-box--hidden {
  display: none;
}

.modal__log-content {
  font-family: monospace;
  font-size: 0.75rem;
  color: #10b981;
  white-space: pre-wrap;
}

/* ==========================================================================
   Responsive Adaptations (Mobile Mockup: samples/mobile.png)
   ========================================================================== */
@media (max-width: 768px) {
  .page-wrapper {
    max-width: 100%;
    padding: 0 14px;
  }

  .app {
    padding: 8px 0 30px;
  }

  /* Header adjustments */
  .navbar {
    padding: 6px 0 16px;
  }

  .navbar__brand-tag {
    display: none;
  }

  /* Hero adjustments matching samples/mobile.png */
  .hero {
    border-radius: 28px;
    padding: 36px 18px 40px;
    margin-bottom: 28px;
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .hero__indicators {
    display: flex;
  }

  /* Stacked input and button on mobile per samples/mobile.png */
  .search-bar {
    flex-direction: column;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 12px;
  }

  .search-bar__left {
    width: 100%;
    background: #ffffff;
    border-radius: var(--radius-pill);
    padding: 12px 18px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  }

  .search-bar__right {
    width: 100%;
  }

  .search-bar__paste-btn {
    display: none;
  }

  .search-bar__submit-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: var(--radius-pill);
  }

  /* Result Card Mobile */
  .result-card__body {
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .result-card__thumb-wrapper {
    width: 100%;
    border-radius: 12px;
  }

  .result-card__controls {
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .result-card__quality-box,
  .result-card__select,
  .result-card__download-btn {
    width: 100%;
    justify-content: center;
  }

  /* Supported Platforms Mobile */
  .hero__platforms {
    flex-direction: column;
    gap: 10px;
    padding: 12px 20px;
    width: 100%;
  }

  /* "How to use" layout stack */
  .guide__layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Dark Cards stack */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Benefits stack */
  .benefits__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .benefit-item:not(:last-child)::after {
    display: none;
  }

  .faq {
    padding: 30px 18px;
    border-radius: 24px;
  }

  .footer {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

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

/* ==========================================================================
   Universal Downloader & All-Format Stream Styles (BEM)
   ========================================================================== */

.navbar__brand-link {
  text-decoration: none;
  color: inherit;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar__nav-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.navbar__nav-link:hover,
.navbar__nav-link--active {
  color: #ffffff;
  font-weight: 600;
}

/* Engine Status Badge */
.engine-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e5e7eb;
}

.engine-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
}

.engine-badge__dot--online {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.engine-badge__dot--standby {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

/* Universal Workspace */
.universal-workspace {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.universal-workspace--hidden {
  display: none;
}

/* Active Link Banner */
.active-link-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #131926;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  margin-bottom: 24px;
}

.active-link-banner__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
}

.active-link-banner__url {
  flex: 1;
  color: #38bdf8;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-link-banner__clear-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #e5e7eb;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.active-link-banner__clear-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Media Overview Card */
.media-overview-card {
  display: flex;
  gap: 24px;
  background: #131926;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.media-overview-card__thumb-wrapper {
  position: relative;
  width: 260px;
  min-width: 260px;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.media-overview-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-overview-card__extractor-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.media-overview-card__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.media-overview-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.media-overview-card__author {
  font-size: 0.88rem;
  color: #9ca3af;
  margin-bottom: 16px;
}

.media-overview-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-badge {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 6px 12px;
}

.meta-badge__label {
  font-size: 0.68rem;
  color: #6b7280;
  text-transform: uppercase;
  font-weight: 600;
}

.meta-badge__value {
  font-size: 0.84rem;
  color: #f3f4f6;
  font-weight: 600;
}

/* Download Progress Panel */
.download-progress-panel {
  background: #111827;
  border: 1px solid var(--color-primary);
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 30px;
  box-shadow: 0 0 24px rgba(255, 43, 84, 0.2);
}

.download-progress-panel--hidden {
  display: none;
}

.download-progress-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.download-progress-panel__status-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.download-progress-panel__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.download-progress-panel__status {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
}

.download-progress-panel__percent {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
}

.download-progress-panel__track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 12px;
}

.download-progress-panel__fill {
  width: var(--progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, #ff2b54, #ff6b8b);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.download-progress-panel__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.download-progress-panel__metrics {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: #9ca3af;
}

.download-progress-panel__cancel-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #9ca3af;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.download-progress-panel__cancel-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: #ef4444;
}

.download-progress-panel__actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.download-progress-panel__actions--hidden {
  display: none;
}

.download-progress-panel__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.download-progress-panel__btn--save {
  background: #10b981;
  color: #ffffff;
}

.download-progress-panel__btn--save:hover {
  background: #059669;
  transform: translateY(-1px);
}

.download-progress-panel__btn--folder {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.download-progress-panel__btn--folder:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Formats Browser */
.formats-browser {
  background: #131926;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

.formats-browser__tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.formats-browser__tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #9ca3af;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.formats-browser__tab:hover {
  color: #ffffff;
}

.formats-browser__tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: rgba(255, 43, 84, 0.06);
}

.formats-browser__tab-count {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
}

.formats-browser__panel {
  display: none;
  padding: 24px;
}

.formats-browser__panel--active {
  display: block;
}

/* Formats Table */
.formats-table-wrapper {
  overflow-x: auto;
}

.formats-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.formats-table th {
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.formats-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  color: #e5e7eb;
}

.formats-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.format-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.format-res-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.badge--gold { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge--purple { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.badge--crimson { background: rgba(255, 43, 84, 0.2); color: #ff4d73; border: 1px solid rgba(255, 43, 84, 0.4); }
.badge--blue { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.badge--gray { background: rgba(156, 163, 175, 0.2); color: #d1d5db; border: 1px solid rgba(156, 163, 175, 0.3); }

.format-name {
  font-weight: 600;
  color: #ffffff;
}

.format-ext-pill,
.format-badge-pill {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

.format-codec-text {
  font-family: monospace;
  font-size: 0.8rem;
  color: #9ca3af;
}

.format-size-text {
  font-weight: 600;
  color: #f3f4f6;
}

.format-download-btn {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.format-download-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 43, 84, 0.4);
}

/* Audio Converter Banner */
.audio-converter-banner {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}

.audio-converter-banner__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.audio-converter-banner__desc {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-bottom: 16px;
}

.audio-converter-banner__quick-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.audio-quick-card {
  background: #1a2234;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.audio-quick-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.audio-quick-card__bitrate {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 600;
}

.audio-quick-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.audio-quick-card__size {
  font-size: 0.8rem;
  color: #38bdf8;
  font-weight: 600;
}

.audio-quick-card__btn {
  margin-top: 6px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.audio-quick-card__btn:hover {
  background: var(--color-primary-hover);
}

/* Custom Format Box */
.custom-format-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  max-width: 600px;
}

.custom-format-box__title {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.custom-format-box__desc {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-bottom: 18px;
}

.custom-format-box__desc code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: #f43f5e;
}

.custom-format-box__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.custom-format-box__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-format-box__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #d1d5db;
}

.custom-format-box__input,
.custom-format-box__select {
  padding: 10px 14px;
  background: #0f141f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.88rem;
}

.custom-format-box__btn {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}

/* Platforms Section */
.platforms-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.platforms-section__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.platforms-section__subtitle {
  font-size: 0.95rem;
  color: #9ca3af;
  margin-bottom: 36px;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  text-align: left;
}

.platform-card {
  background: #131926;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px;
  transition: all var(--transition-fast);
}

.platform-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.platform-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 12px;
}

.platform-card__icon--yt { background: #ff0000; color: #fff; }
.platform-card__icon--tt { background: #000000; color: #00f2fe; border: 1px solid #00f2fe; }
.platform-card__icon--ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.platform-card__icon--tw { background: #000000; color: #fff; border: 1px solid #333; }
.platform-card__icon--fb { background: #1877f2; color: #fff; }
.platform-card__icon--vm { background: #1ab7ea; color: #fff; }

.platform-card__name {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.platform-card__desc {
  font-size: 0.82rem;
  color: #9ca3af;
  line-height: 1.4;
}

/* Diagnostics Input & Controls */
.diag-item__input {
  width: 100%;
  padding: 8px 12px;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.82rem;
  margin: 6px 0;
}

.diag-item__btn {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

/* Mobile Responsiveness for Universal Downloader */
@media (max-width: 768px) {
  .navbar__nav {
    display: none;
  }

  .media-overview-card {
    flex-direction: column;
    padding: 16px;
  }

  .media-overview-card__thumb-wrapper {
    width: 100%;
    min-width: 0;
    height: 190px;
  }

  .formats-browser__tabs {
    padding: 4px;
  }

  .formats-browser__tab {
    padding: 12px 14px;
    font-size: 0.8rem;
  }

  .formats-table th,
  .formats-table td {
    padding: 10px 8px;
    font-size: 0.78rem;
  }

  .audio-converter-banner__quick-cards {
    grid-template-columns: 1fr;
  }
}
