/* ==========================================================================
   YTD8K.IN — Premium Modern Stylesheet
   Matches homepage.png and youtube.png designs
   ========================================================================== */

:root {
  --primary-red: #ff0033;
  --primary-red-hover: #e0002d;
  --primary-red-light: #fff0f2;
  --navy-dark: #0b132b;
  --navy-text: #0f172a;
  --navy-muted: #64748b;
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-page: #0b0f19;
  --bg-card: #151d30;
  --navy-dark: #060911;
  --navy-text: #f8fafc;
  --navy-muted: #94a3b8;
  --border-light: #222f47;
  --border-subtle: #1c273c;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.6);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--navy-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.25s ease;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #ff0033 0%, #ff4b4b 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 0, 51, 0.25);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-text);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--navy-muted);
  font-weight: 500;
}

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

.nav-item a, .nav-item button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy-text);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-item a:hover, .nav-item button:hover {
  background: var(--border-subtle);
  color: var(--primary-red);
}

.nav-item a.active-pill {
  background: var(--primary-red);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 0, 51, 0.3);
}

.nav-item.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-text);
}

.dropdown-menu li a:hover {
  background: var(--border-subtle);
  color: var(--primary-red);
}

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

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--navy-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: var(--border-subtle);
}

.lang-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--navy-text);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-wrapper {
  background: linear-gradient(135deg, #fff3ea 0%, #ffffff 45%, #e9f2ff 100%);
  padding: 55px 0 45px 0;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .hero-wrapper {
  background: linear-gradient(135deg, #181d2c 0%, #101726 50%, #131a30 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff8f0;
  border: 1px solid #fed7aa;
  color: #ea580c;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: 20px;
}

[data-theme="dark"] .hero-badge {
  background: #3b2314;
  border-color: #7c2d12;
  color: #fdba74;
}

.hero-title {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--navy-text);
  margin-bottom: 16px;
}

.text-youtube { color: #ff0000; }
.text-facebook { color: #1877f2; }
.text-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--navy-muted);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 580px;
}

/* Search / Download Input Box */
.search-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 6px 8px 6px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: all 0.2s ease;
}

.search-card:focus-within {
  border-color: #ff0033;
  box-shadow: 0 12px 35px rgba(255, 0, 51, 0.15);
}

.search-input-icon {
  width: 20px;
  height: 20px;
  color: var(--navy-muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15.5px;
  color: var(--navy-text);
  outline: none;
  min-width: 0;
}

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

.btn-clear {
  background: transparent;
  border: none;
  color: var(--navy-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-clear:hover {
  background: var(--border-subtle);
  color: var(--navy-text);
}

.btn-download-primary {
  background: linear-gradient(135deg, #ff0033 0%, #ff2b49 100%);
  color: #ffffff;
  border: none;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(255, 0, 51, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-download-primary:hover {
  background: linear-gradient(135deg, #e0002d 0%, #eb1e3d 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 0, 51, 0.45);
}

.example-box {
  margin-top: 12px;
  font-size: 13px;
  color: var(--navy-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.example-link-pill {
  background: #fee2e2;
  color: #b91c1c;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: monospace;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid #fca5a5;
  transition: all 0.15s ease;
}

.example-link-pill:hover {
  background: #fecaca;
}

[data-theme="dark"] .example-link-pill {
  background: #450a0a;
  border-color: #991b1b;
  color: #fca5a5;
}

/* Popular supported sites chips under hero */
.popular-sites-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.popular-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-text);
}

.popular-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-text);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.popular-chip:hover {
  border-color: var(--primary-red);
  transform: translateY(-1px);
  color: var(--primary-red);
}

.chip-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Right Graphic Mockup */
.hero-graphic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.graphic-mockup {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #111827;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 6px solid #1f2937;
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-play-btn {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.mockup-play-btn svg {
  width: 26px;
  height: 26px;
  fill: #ff0033;
  margin-left: 3px;
}

/* Floating UI Badges */
.badge-4k {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #000000;
  font-weight: 900;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

.float-badge {
  position: absolute;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.float-mp4 {
  bottom: 20px;
  left: 20px;
  background: #3b82f6;
  color: #ffffff;
}

.float-mp3 {
  bottom: 20px;
  left: 75px;
  background: #ec4899;
  color: #ffffff;
}

.float-1080p {
  bottom: 20px;
  right: 130px;
  background: #f59e0b;
  color: #ffffff;
}

.float-720p {
  bottom: 20px;
  right: 75px;
  background: #06b6d4;
  color: #ffffff;
}

.float-360p {
  bottom: 20px;
  right: 25px;
  background: #10b981;
  color: #ffffff;
}

.float-download-icon {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
  color: #ffffff;
}

/* ==========================================================================
   Feature Cards Row (5 Badges)
   ========================================================================== */
.features-strip {
  padding: 30px 0;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

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

.feature-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-circle svg {
  width: 22px;
  height: 22px;
}

.icon-green { background: #dcfce7; color: #16a34a; }
.icon-red { background: #fee2e2; color: #dc2626; }
.icon-blue { background: #dbeafe; color: #2563eb; }
.icon-purple { background: #f3e8ff; color: #9333ea; }
.icon-orange { background: #ffedd5; color: #ea580c; }

[data-theme="dark"] .icon-green { background: #052e16; color: #4ade80; }
[data-theme="dark"] .icon-red { background: #450a0a; color: #f87171; }
[data-theme="dark"] .icon-blue { background: #172554; color: #60a5fa; }
[data-theme="dark"] .icon-purple { background: #3b0764; color: #c084fc; }
[data-theme="dark"] .icon-orange { background: #431407; color: #fb923c; }

.feature-text {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy-text);
  line-height: 1.25;
}

/* ==========================================================================
   Ad Banner Containers (Clean & Reserved space)
   ========================================================================== */
.ad-slot-728 {
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: 35px auto;
  background: #fdf2f2;
  border: 1px dashed #fca5a5;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #991b1b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  transition: all 0.2s ease;
}

[data-theme="dark"] .ad-slot-728 {
  background: #201317;
  border-color: #4a1d24;
  color: #fca5a5;
}

.ad-slot-300 {
  width: 100%;
  max-width: 300px;
  height: 250px;
  margin: 15px auto;
  background: #f0fdf4;
  border: 1px dashed #86efac;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
}

[data-theme="dark"] .ad-slot-300 {
  background: #0f2015;
  border-color: #14532d;
  color: #86efac;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy-text);
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 3.5px;
  background: var(--primary-red);
  border-radius: var(--radius-full);
}

.section-link {
  font-size: 14px;
  font-weight: 700;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Supported Platforms Grid (8 Cards)
   ========================================================================== */
.platforms-section {
  padding: 40px 0;
}

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

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.platform-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.platform-card-icon svg {
  width: 28px;
  height: 28px;
}

.platform-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-text);
  margin-bottom: 6px;
}

.platform-card-badge {
  font-size: 12.5px;
  color: var(--navy-muted);
  margin-bottom: 18px;
  min-height: 20px;
}

.btn-card-download {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ef4444;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.platform-card:hover .btn-card-download {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

[data-theme="dark"] .btn-card-download {
  background: #2b1318;
  border-color: #4a1d24;
  color: #f87171;
}

/* ==========================================================================
   How to Download Section
   ========================================================================== */
.how-to-section {
  padding: 40px 0 60px 0;
}

.how-to-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: flex-start;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-muted);
}

.step-icon-btn svg {
  width: 16px;
  height: 16px;
}

.step-1-color { background: #ef4444; }
.step-2-color { background: #3b82f6; }
.step-3-color { background: #a855f7; }
.step-4-color { background: #22c55e; }

.step-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-text);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 13.5px;
  color: var(--navy-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Tool Single Page Layout (Matches youtube.png)
   ========================================================================== */
.tool-page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  padding: 20px 0 60px 0;
}

.tool-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.box-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.box-title-row svg {
  width: 24px;
  height: 24px;
}

.box-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-text);
}

.box-subtitle {
  font-size: 13.5px;
  color: var(--navy-muted);
  margin-bottom: 14px;
}

/* Supported Links Pills */
.supported-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.check-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-text);
}

.check-pill svg {
  width: 16px;
  height: 16px;
  color: #ef4444;
  flex-shrink: 0;
}

/* Tip Alert Banner */
.tip-alert {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1e40af;
  font-size: 13.5px;
  margin-top: 14px;
}

[data-theme="dark"] .tip-alert {
  background: #172554;
  border-color: #1e3a8a;
  color: #93c5fd;
}

/* Formats Grid */
.formats-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.format-group-card {
  background: var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.format-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.format-group-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.format-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.format-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-text);
}

/* Accordion FAQs */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-toggle-icon {
  font-size: 18px;
  font-weight: bold;
  color: var(--navy-muted);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
  color: var(--primary-red);
}

.faq-answer {
  padding: 0 20px 16px 20px;
  font-size: 14px;
  color: var(--navy-muted);
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.widget-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.widget-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-text);
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-text);
}

.check-list-item svg {
  width: 18px;
  height: 18px;
  color: #16a34a;
  flex-shrink: 0;
}

/* Related Tools Widget */
.tools-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-link-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.tool-link-item a:hover {
  background: var(--border-subtle);
}

.tool-info-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fee2e2;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-name-text {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-text);
}

.tool-desc-text {
  font-size: 11.5px;
  color: var(--navy-muted);
}

/* ==========================================================================
   Media Extraction Result Display (Strict No-Storage)
   ========================================================================== */
#result-container {
  display: none;
  margin-top: 24px;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.result-media-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.result-thumbnail-box {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000000;
}

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

.result-duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.result-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-text);
  line-height: 1.3;
  margin-bottom: 6px;
}

.result-uploader {
  font-size: 13.5px;
  color: var(--navy-muted);
  margin-bottom: 12px;
}

/* Result Formats Table */
.formats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.formats-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-muted);
  border-bottom: 1px solid var(--border-light);
  background: var(--border-subtle);
}

.formats-table td {
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--navy-text);
}

.btn-stream-dl {
  background: #16a34a;
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-stream-dl:hover {
  background: #15803d;
}

.btn-stream-audio {
  background: #2563eb;
}

.btn-stream-audio:hover {
  background: #1d4ed8;
}

/* Loading spinner */
.loading-box {
  display: none;
  text-align: center;
  padding: 30px;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff0033;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-box {
  display: none;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
}

[data-theme="dark"] .error-box {
  background: #450a0a;
  border-color: #991b1b;
  color: #fca5a5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0a0e1a;
  color: #ffffff;
  padding: 60px 0 30px 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .brand-title {
  color: #ffffff;
}

.footer-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
}

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

.footer-links-list a {
  font-size: 13.5px;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: #ffffff;
}

.social-icons-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.social-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.social-circle-btn:hover {
  transform: translateY(-2px);
}

.social-yt { background: #ff0000; }
.social-fb { background: #1877f2; }
.social-x { background: #000000; border: 1px solid #334155; }
.social-tg { background: #0088cc; }

.footer-copyright {
  font-size: 13px;
  color: #64748b;
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-graphic {
    display: none;
  }
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-to-layout {
    grid-template-columns: 1fr;
  }
  .tool-page-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 32px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .supported-links-grid {
    grid-template-columns: 1fr;
  }
  .formats-split-grid {
    grid-template-columns: 1fr;
  }
  .result-media-header {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
