:root {
  /* Product-specific colors - red for YouTube */
  --color-primary: #dc2626;
  --color-primary-hover: #b91c1c;
  --color-primary-light: #fee2e2;
  --color-primary-faint: #fef2f2;

  /* Shared neutrals */
  --color-bg: #ffffff;
  --color-text: #111827;
  --color-text-muted: #4b5563;
  --color-text-faint: #8a919d;
  --color-surface: #f9fafb;
  --color-border: #e5e7eb;
  --color-border-strong: #d1d5db;
  --color-success: #15803d;
  --color-success-light: #dcfce7;
  --color-warning: #9a5400;
  --color-warning-light: #fef3c7;
  --color-error: #b91c1c;
  --color-error-light: #fee2e2;
  --color-btn-text: #ffffff;

  /* Layout */
  --max-width: 900px;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2.5rem;
  --spacing-2xl: 4rem;
  --section-gap: clamp(3rem, 6vw, 5rem);

  /* Border radius */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 4px 8px rgba(0, 0, 0, 0.06),
    0 8px 16px rgba(0, 0, 0, 0.04);
  --shadow-lg:
    0 2px 4px rgba(0, 0, 0, 0.02),
    0 4px 8px rgba(0, 0, 0, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.04);
  --shadow-primary:
    0 2px 4px rgba(220, 38, 38, 0.06),
    0 4px 8px rgba(220, 38, 38, 0.08),
    0 12px 24px rgba(220, 38, 38, 0.06);

  /* CTA */
  --cta-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  --cta-shadow-hover: 0 6px 20px rgba(220, 38, 38, 0.45);

  /* Typography */
  --font-xs: 0.75rem;
  --font-sm: 0.85rem;
  --font-base: 1rem;
  --font-md: 1.05rem;
  --font-lg: 1.15rem;
  --font-xl: 1.25rem;

  /* Z-index */
  --z-below: -1;
  --z-base: 1;
  --z-tooltip: 10;
  --z-header: 50;
  --z-skip-link: 200;

  /* Transition */
  --transition: 0.2s ease-out;

  /* Header */
  --header-bg: rgba(255, 255, 255, 0.85);
  --overlay-bg: rgba(255, 255, 255, 0.88);
}

/* ===================== Dark mode ===================== */
[data-theme="dark"] {
  --color-primary: #f87171;
  --color-primary-hover: #ef4444;
  --color-primary-light: #350707;
  --color-primary-faint: #1a0404;

  --color-bg: #0a0a0a;
  --color-text: #e5e7eb;
  --color-text-muted: #9ca3af;
  --color-text-faint: #6b7280;
  --color-surface: #141414;
  --color-border: #262626;
  --color-border-strong: #3f3f46;
  --color-success: #22c55e;
  --color-success-light: #052e16;
  --color-warning: #f59e0b;
  --color-warning-light: #451a03;
  --color-error: #ef4444;
  --color-error-light: #350707;
  --color-btn-text: #0a0a0a;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md:
    0 2px 4px rgba(0, 0, 0, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 8px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg:
    0 2px 4px rgba(0, 0, 0, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 12px 24px rgba(0, 0, 0, 0.3),
    0 24px 48px rgba(0, 0, 0, 0.2);
  --shadow-primary:
    0 2px 4px rgba(248, 113, 113, 0.06),
    0 4px 8px rgba(248, 113, 113, 0.08),
    0 12px 24px rgba(248, 113, 113, 0.06);
  --cta-shadow: 0 4px 14px rgba(248, 113, 113, 0.25);
  --cta-shadow-hover: 0 6px 20px rgba(248, 113, 113, 0.35);

  --header-bg: rgba(10, 10, 10, 0.85);
  --overlay-bg: rgba(10, 10, 10, 0.88);
}

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

body,
header,
footer,
.card,
.theme-toggle,
.nav-panel a,
.logo,
.hero,
.upload-zone,
.mode-btn,
.yt-mock {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  body, header, footer, .card, .theme-toggle, .nav-panel a,
  .logo, .hero, .upload-zone, .mode-btn, .yt-mock {
    transition: none;
  }
}

html {
  scroll-behavior: smooth;
}

/* ===================== Skip link ===================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-btn-text);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  z-index: var(--z-skip-link);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ===================== Announcement bar ===================== */
.announcement-bar {
  background: var(--color-primary);
  color: var(--color-btn-text);
  text-align: center;
  padding: 0.5rem var(--spacing-md);
  font-size: var(--font-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.announcement-bar .ann-sep {
  display: inline-block;
  margin: 0 0.75rem;
  opacity: 0.5;
}

.announcement-bar .ann-cta {
  color: var(--color-btn-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announcement-bar .ann-cta:hover {
  opacity: 0.85;
}

/* ===================== Body ===================== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ===================== Header / Nav ===================== */
header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: var(--font-lg);
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo svg {
  width: 24px;
  height: 24px;
}

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

.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.4rem;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

[data-theme="light"] .icon-sun,
[data-theme="dark"] .icon-moon {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-panel a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--font-sm);
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
}

.nav-panel a:hover,
.nav-panel a[aria-current="page"] {
  color: var(--color-primary);
  background: var(--color-primary-faint);
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: var(--spacing-sm) 0;
    gap: 0;
  }

  .nav-panel.nav-open {
    display: flex;
  }

  .nav-panel a {
    width: 100%;
    padding: 0.65rem 0.75rem;
  }
}

/* ===================== Main ===================== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-2xl);
}

/* ===================== Hero ===================== */
.hero {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-md);
  margin-bottom: var(--section-gap);
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--color-primary);
}

.hero p {
  font-size: var(--font-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
}

.hero .btn {
  margin-top: var(--spacing-sm);
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--font-base);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-btn-text);
  box-shadow: var(--cta-shadow);
}

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

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--font-sm);
}

/* ===================== Cards ===================== */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.card h2, .card h3 {
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

/* ===================== Sections ===================== */
.section {
  margin-bottom: var(--section-gap);
}

.section-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: var(--font-md);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
}

/* ===================== Upload zones ===================== */
.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

@media (max-width: 600px) {
  .upload-grid {
    grid-template-columns: 1fr;
  }
}

.upload-zone {
  border: 2px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  cursor: pointer;
  background: var(--color-surface);
  transition: all var(--transition);
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--color-primary);
  background: var(--color-primary-faint);
}

.upload-zone.has-image {
  padding: var(--spacing-sm);
  border-style: solid;
}

.upload-zone .upload-icon {
  width: 48px;
  height: 48px;
  color: var(--color-text-faint);
  margin-bottom: var(--spacing-sm);
}

.upload-zone .upload-label {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-xs);
}

.upload-zone .upload-hint {
  font-size: var(--font-sm);
  color: var(--color-text-faint);
}

.upload-zone .upload-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  display: none;
}

.upload-zone.has-image .upload-preview {
  display: block;
}

.upload-zone.has-image .upload-icon,
.upload-zone.has-image .upload-label,
.upload-zone.has-image .upload-hint {
  display: none;
}

.upload-zone .remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  width: 28px;
  height: 28px;
  font-size: 16px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.upload-zone.has-image .remove-btn {
  display: flex;
}

.upload-zone input[type="file"] {
  display: none;
}

/* ===================== Title inputs ===================== */
.title-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

@media (max-width: 600px) {
  .title-inputs {
    grid-template-columns: 1fr;
  }
}

.title-input-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.title-input-group label {
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

.title-input-group input {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
}

.title-input-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.char-count {
  font-size: var(--font-xs);
  color: var(--color-text-faint);
  text-align: right;
}

.char-count.over {
  color: var(--color-error);
  font-weight: 600;
}

/* ===================== Control bar ===================== */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  align-items: center;
}

.mode-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: var(--font-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

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

.mode-btn.active {
  background: var(--color-primary);
  color: var(--color-btn-text);
  border-color: var(--color-primary);
}

.controls-divider {
  width: 1px;
  height: 24px;
  background: var(--color-border);
  margin: 0 var(--spacing-xs);
}

.device-btn {
  padding: 0.4rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.device-btn.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-faint);
}

.device-btn svg {
  width: 20px;
  height: 20px;
}

.yt-theme-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-sm);
  color: var(--color-text-muted);
}

.yt-theme-toggle label {
  cursor: pointer;
  font-weight: 500;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--color-border-strong);
  border-radius: var(--radius-full);
  transition: background 0.2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: #333;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* ===================== YouTube mock ===================== */
.yt-mock {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  min-height: 300px;
  overflow: hidden;
}

.yt-mock.yt-dark {
  background: #0f0f0f;
  border-color: #272727;
  color: #f1f1f1;
}

.yt-mock .placeholder-text {
  color: var(--color-text-faint);
  text-align: center;
  padding: var(--spacing-2xl);
  font-size: var(--font-sm);
}

.yt-mock.yt-dark .placeholder-text {
  color: #717171;
}

/* Search results view */
.yt-search-results {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.yt-search-item {
  display: flex;
  gap: var(--spacing-md);
}

.yt-search-thumb {
  width: 360px;
  min-width: 240px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e5e5e5;
  flex-shrink: 0;
}

.yt-mock.yt-dark .yt-search-thumb {
  background: #272727;
}

.yt-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-search-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.yt-search-title {
  font-size: var(--font-lg);
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-mock.yt-dark .yt-search-title {
  color: #f1f1f1;
}

.yt-search-stats {
  font-size: var(--font-xs);
  color: #606060;
}

.yt-mock.yt-dark .yt-search-stats {
  color: #aaa;
}

.yt-search-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-xs);
  color: #606060;
}

.yt-mock.yt-dark .yt-search-channel {
  color: #aaa;
}

.yt-channel-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ccc;
}

.yt-mock.yt-dark .yt-channel-avatar {
  background: #444;
}

.yt-search-desc {
  font-size: var(--font-xs);
  color: #606060;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-mock.yt-dark .yt-search-desc {
  color: #aaa;
}

/* Gray placeholder items */
.yt-ghost-item {
  display: flex;
  gap: var(--spacing-md);
}

.yt-ghost-thumb {
  width: 360px;
  min-width: 240px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #e5e5e5;
  flex-shrink: 0;
}

.yt-mock.yt-dark .yt-ghost-thumb {
  background: #272727;
}

.yt-ghost-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding-top: 4px;
}

.yt-ghost-line {
  height: 12px;
  border-radius: 4px;
  background: #e5e5e5;
}

.yt-mock.yt-dark .yt-ghost-line {
  background: #272727;
}

.yt-ghost-line.w70 { width: 70%; }
.yt-ghost-line.w40 { width: 40%; }
.yt-ghost-line.w30 { width: 30%; }
.yt-ghost-line.w90 { width: 90%; }

/* Suggested sidebar view */
.yt-suggested {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-width: 400px;
}

.yt-suggested-item {
  display: flex;
  gap: var(--spacing-sm);
}

.yt-suggested-thumb {
  width: 168px;
  min-width: 168px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e5e5e5;
}

.yt-mock.yt-dark .yt-suggested-thumb {
  background: #272727;
}

.yt-suggested-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-suggested-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yt-suggested-title {
  font-size: var(--font-sm);
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-mock.yt-dark .yt-suggested-title {
  color: #f1f1f1;
}

.yt-suggested-channel {
  font-size: var(--font-xs);
  color: #606060;
}

.yt-mock.yt-dark .yt-suggested-channel {
  color: #aaa;
}

.yt-suggested-stats {
  font-size: var(--font-xs);
  color: #606060;
}

.yt-mock.yt-dark .yt-suggested-stats {
  color: #aaa;
}

/* Ghost items for suggested */
.yt-ghost-suggested {
  display: flex;
  gap: var(--spacing-sm);
}

.yt-ghost-suggested-thumb {
  width: 168px;
  min-width: 168px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #e5e5e5;
}

.yt-mock.yt-dark .yt-ghost-suggested-thumb {
  background: #272727;
}

.yt-ghost-suggested-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

/* Home feed grid */
.yt-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

@media (max-width: 640px) {
  .yt-home-grid {
    grid-template-columns: 1fr;
  }
}

.yt-home-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.yt-home-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e5e5e5;
}

.yt-mock.yt-dark .yt-home-thumb {
  background: #272727;
}

.yt-home-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-home-meta {
  display: flex;
  gap: var(--spacing-sm);
}

.yt-home-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ccc;
  flex-shrink: 0;
}

.yt-mock.yt-dark .yt-home-avatar {
  background: #444;
}

.yt-home-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yt-home-title {
  font-size: var(--font-sm);
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-mock.yt-dark .yt-home-title {
  color: #f1f1f1;
}

.yt-home-channel {
  font-size: var(--font-xs);
  color: #606060;
}

.yt-mock.yt-dark .yt-home-channel {
  color: #aaa;
}

.yt-home-stats {
  font-size: var(--font-xs);
  color: #606060;
}

.yt-mock.yt-dark .yt-home-stats {
  color: #aaa;
}

/* Ghost home items */
.yt-ghost-home {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.yt-ghost-home-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #e5e5e5;
}

.yt-mock.yt-dark .yt-ghost-home-thumb {
  background: #272727;
}

.yt-ghost-home-meta {
  display: flex;
  gap: var(--spacing-sm);
}

.yt-ghost-home-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e5e5;
  flex-shrink: 0;
}

.yt-mock.yt-dark .yt-ghost-home-avatar {
  background: #272727;
}

.yt-ghost-home-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

/* Side by side */
.yt-side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

@media (max-width: 600px) {
  .yt-side-by-side {
    grid-template-columns: 1fr;
  }
}

.yt-sbs-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.yt-sbs-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e5e5e5;
}

.yt-mock.yt-dark .yt-sbs-thumb {
  background: #272727;
}

.yt-sbs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-sbs-label {
  text-align: center;
  font-weight: 600;
  font-size: var(--font-sm);
  color: var(--color-text-muted);
}

.yt-mock.yt-dark .yt-sbs-label {
  color: #aaa;
}

/* Responsive search items */
@media (max-width: 640px) {
  .yt-search-thumb,
  .yt-ghost-thumb {
    width: 100%;
    min-width: 100%;
  }

  .yt-search-item,
  .yt-ghost-item {
    flex-direction: column;
  }
}

/* Device preview container */
.device-frame {
  margin: 0 auto;
  transition: max-width 0.3s ease;
}

.device-frame[data-device="desktop"] {
  max-width: 100%;
}

.device-frame[data-device="tablet"] {
  max-width: 768px;
}

.device-frame[data-device="mobile"] {
  max-width: 375px;
}

/* ===================== Stats section ===================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--section-gap);
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
}

.stat-number {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: var(--font-sm);
  color: var(--color-text-muted);
}

/* ===================== How it works ===================== */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--section-gap);
}

.step-item {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-btn-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-lg);
  flex-shrink: 0;
}

.step-content h3 {
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.step-content p {
  color: var(--color-text-muted);
  font-size: var(--font-sm);
}

/* ===================== FAQ ===================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item summary {
  padding: var(--spacing-md) var(--spacing-lg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  background: var(--color-surface);
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--color-text-faint);
  flex-shrink: 0;
}

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

.faq-answer {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===================== Content pages ===================== */
.content-page {
  max-width: 700px;
}

.content-page h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

.content-page h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
}

.content-page h3 {
  font-size: var(--font-lg);
  font-weight: 700;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.content-page p,
.content-page li {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
}

.content-page ul, .content-page ol {
  padding-left: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.content-page a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-page a:hover {
  opacity: 0.8;
}

.content-page .tip-card {
  background: var(--color-primary-faint);
  border: 1px solid var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: var(--spacing-md) var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.content-page .tip-card h3 {
  margin-top: 0;
  color: var(--color-primary);
}

/* Numbered tips */
.tip-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-btn-text);
  font-weight: 700;
  font-size: var(--font-sm);
  margin-right: var(--spacing-sm);
  flex-shrink: 0;
}

.tip-heading {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

/* ===================== CTA banner ===================== */
.cta-banner {
  background: var(--color-primary-faint);
  border: 1px solid var(--color-primary-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  text-align: center;
  margin: var(--section-gap) 0;
}

.cta-banner h2 {
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
}

.cta-banner p {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
}

/* ===================== Footer ===================== */
footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  font-size: var(--font-sm);
  color: var(--color-text-muted);
}

footer a {
  color: var(--color-text-muted);
  text-decoration: none;
}

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

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--spacing-lg);
  max-width: var(--max-width);
  margin: var(--spacing-lg) auto;
  text-align: left;
}

.footer-nav-group h4 {
  font-size: var(--font-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-faint);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.footer-nav-group a {
  display: block;
  padding: 0.2rem 0;
  font-size: var(--font-sm);
}

.disclaimer {
  max-width: var(--max-width);
  margin: 0 auto var(--spacing-md);
  font-size: var(--font-xs);
  color: var(--color-text-faint);
  line-height: 1.6;
}
.trust-badges {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/* ===================== Success page ===================== */
.success-page {
  text-align: center;
  padding: var(--spacing-2xl) 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  color: var(--color-success);
  margin-bottom: var(--spacing-md);
}

/* ===================== 404 page ===================== */
.not-found {
  text-align: center;
  padding: var(--spacing-2xl) 0;
}

.not-found h1 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* ===================== Data reveal ===================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
