* { box-sizing: border-box; }
body { font-family: -apple-system, Segoe UI, Roboto, sans-serif; margin: 0; background: #f7f7f9; color: #1a1a1a; }
.navbar { display: flex; gap: 24px; align-items: center; padding: 16px 32px; background: #ffffff; border-bottom: 1px solid #e5e5e5; position: sticky; top: 0; z-index: 50; flex-wrap: wrap; }
.navbar .brand { font-weight: 700; margin-right: auto; font-size: 17px; }
.navbar a { text-decoration: none; color: #333; font-size: 14px; transition: color .15s ease; }
.navbar a:hover { color: #2563eb; }
.container { max-width: 960px; margin: 0 auto; padding: 32px 16px; min-height: 55vh; }
.search-form { display: flex; gap: 8px; margin-bottom: 8px; }
.search-form input { flex: 1; padding: 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; }
.search-form input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.search-form button { padding: 12px 20px; border: none; border-radius: 8px; background: #2563eb; color: white; font-size: 16px; cursor: pointer; transition: background .15s ease; }
.search-form button:hover { background: #1d4ed8; }
.hint { color: #666; font-size: 14px; margin-bottom: 24px; }
.unavailable { color: #b45309; background: #fffbeb; padding: 10px 14px; border-radius: 8px; }
.platform-section { margin: 32px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card { background: white; border: 1px solid #e5e5e5; border-radius: 10px; padding: 10px; }
.card img { width: 100%; border-radius: 6px; }
.meta { color: #777; font-size: 13px; }
.result-list { list-style: none; padding: 0; }
.result-list li { background: white; border: 1px solid #e5e5e5; border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.connect-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 16px; }
.connect-card { background: white; border: 1px solid #e5e5e5; border-radius: 10px; padding: 16px; text-align: center; }
.btn-primary { display: inline-block; margin-top: 8px; padding: 8px 16px; background: #2563eb; color: white; border-radius: 6px; text-decoration: none; border: none; cursor: pointer; font-size: 14px; font-weight: 600; transition: background .15s ease, transform .15s ease; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); }
.btn-secondary { display: inline-block; margin-top: 8px; padding: 8px 16px; background: #eee; color: #333; border-radius: 6px; text-decoration: none; font-size: 14px; font-weight: 600; transition: background .15s ease; }
.btn-secondary:hover { background: #e2e2e2; }
.connected-badge { color: #15803d; font-weight: 600; }
.upload-form { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
.upload-form input, .upload-form textarea { padding: 10px; border: 1px solid #ccc; border-radius: 6px; }
.checkbox-row { display: flex; gap: 16px; flex-wrap: wrap; }
.flash { background: #ecfdf5; border: 1px solid #a7f3d0; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }

/* YouTube-style search results */
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.yt-card { background: white; border-radius: 12px; overflow: hidden; border: 1px solid #e5e5e5; transition: box-shadow .15s ease; }
.yt-card:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.yt-thumb-wrap { position: relative; cursor: pointer; background: #000; }
.yt-thumb { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.yt-duration { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,0.8); color: white; font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.yt-play-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 40px; color: white; opacity: 0; transition: opacity 0.15s; text-shadow: 0 0 8px rgba(0,0,0,0.6); }
.yt-thumb-wrap:hover .yt-play-overlay { opacity: 0.9; }
.yt-meta-row { display: flex; gap: 10px; padding: 12px; }
.yt-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.yt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.yt-title { color: #0f0f0f; font-weight: 600; text-decoration: none; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-channel { color: #606060; font-size: 13px; text-decoration: none; margin-top: 2px; }
.yt-channel:hover { color: #0f0f0f; }
.yt-stats { color: #606060; font-size: 12px; margin: 2px 0 0; }

/* ===== Legal pages (Privacy / Terms / Data Deletion / Support) ===== */
.legal-page { max-width: 760px; line-height: 1.65; }
.legal-page h1 { margin-bottom: 4px; }
.legal-page .meta { color: #777; font-size: 13px; margin-top: 0; margin-bottom: 28px; }
.legal-page h2 { margin-top: 32px; margin-bottom: 8px; font-size: 20px; }
.legal-page h3 { margin-top: 20px; margin-bottom: 6px; font-size: 16px; }
.legal-page ul, .legal-page ol { padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: #2563eb; }

/* ===== Footer ===== */
.site-footer {
  margin-top: 48px;
  padding: 24px 32px;
  border-top: 1px solid #e5e5e5;
  background: #ffffff;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #666;
}
.site-footer a { color: #666; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }


/* ============================================================
   NEW — LANDING PAGE (index.html)
   Same colors as above (#2563eb accent, #1a1a1a ink, #e5e5e5 border)
   so it matches the rest of the site. All class names below are new
   and don't clash with anything above.
   ============================================================ */
.eyebrow { color: #2563eb; font-weight: 700; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; margin-bottom: 10px; }

.hero { max-width: 860px; margin: 0 auto; padding: 56px 16px 44px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; font-weight: 800; color: #1a1a1a; margin: 0 0 18px; }
.hero-sub { font-size: 17px; color: #555; line-height: 1.65; max-width: 640px; margin: 0 auto 28px; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.btn-lg { padding: 13px 26px !important; font-size: 15px !important; }

.section { max-width: 1000px; margin: 0 auto; padding: 48px 16px; text-align: center; }
.section h2 { font-size: clamp(22px, 3.5vw, 30px); color: #1a1a1a; margin: 0 0 14px; font-weight: 800; }
.section-lead { max-width: 680px; margin: 0 auto; color: #555; font-size: 15px; line-height: 1.7; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 32px; text-align: left; }
.step-card { background: white; border: 1px solid #e5e5e5; border-radius: 12px; padding: 22px; position: relative; }
.step-icon { font-size: 26px; display: block; margin-bottom: 8px; }
.step-num { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 700; color: #2563eb; opacity: .5; }
.step-card h3 { margin: 0 0 6px; font-size: 16px; color: #1a1a1a; }
.step-card p { margin: 0; color: #666; font-size: 13px; line-height: 1.6; }

.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 32px; }
.platform-card { background: white; border: 1px solid #e5e5e5; border-radius: 12px; padding: 20px 14px; transition: box-shadow .15s ease, transform .15s ease; }
.platform-card:hover { box-shadow: 0 8px 20px rgba(37,99,235,.12); transform: translateY(-2px); }
.platform-icon { font-size: 28px; display: block; margin-bottom: 6px; }
.platform-card h3 { margin: 0 0 4px; font-size: 15px; color: #1a1a1a; }
.platform-card p { margin: 0; font-size: 12px; color: #666; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; margin-top: 32px; text-align: left; }
.feature-row { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon { font-size: 24px; flex-shrink: 0; }
.feature-row h3 { margin: 0 0 4px; font-size: 15px; color: #1a1a1a; }
.feature-row p { margin: 0; font-size: 13px; color: #666; line-height: 1.6; }

.faq-list { max-width: 700px; margin: 32px auto 0; text-align: left; }
.faq-item { background: white; border: 1px solid #e5e5e5; border-radius: 10px; padding: 4px 18px; margin-bottom: 10px; }
.faq-item summary { cursor: pointer; font-weight: 600; color: #1a1a1a; padding: 13px 0; list-style: none; font-size: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: #2563eb; font-weight: 700; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0 0 14px; color: #666; font-size: 13px; line-height: 1.6; }
.faq-item a { color: #2563eb; }

.cta-section { background: linear-gradient(135deg, #2563eb, #1d4ed8); border-radius: 18px; max-width: 1000px; margin: 12px auto 48px; padding: 46px 16px; color: #fff; }
.cta-section h2 { color: #fff; }
.cta-section .btn-primary { background: #fff; color: #1d4ed8; }
.cta-section .btn-primary:hover { background: #f1f5f9; }

/* ============================================================
   NEW — SEARCH PAGE breadcrumb (search.html)
   ============================================================ */
.breadcrumb { margin: 0 0 16px; }
.breadcrumb a { color: #2563eb; font-size: 13px; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   MOBILE — nav wraps gracefully, no JS needed since base.html
   has no toggle button. If you want a hamburger-collapse nav
   later, say so and I'll add the small HTML+JS for it.
   ============================================================ */
@media (max-width: 700px) {
  .navbar { padding: 14px 16px; gap: 14px 16px; }
  .navbar .brand { width: 100%; margin-bottom: 4px; }
  .hero { padding: 40px 14px 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .search-form { flex-direction: column; }
  .site-footer { flex-direction: column; }
}


/* --- Mobile hamburger nav --- */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle-label span {
  display: block;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 2px;
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .navbar {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .navbar .brand {
    width: auto;
    margin-bottom: 0;
  }
  .nav-toggle-label {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  }
  .nav-links a {
    width: 100%;
    padding: 14px 16px;
    border-top: 1px solid #f0f0f0;
  }
  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }
}
