/* VCMatch brand system — Fundraising Video Library */
:root {
  --primary: #9779F0;
  --primary-foreground: #FFFFFF;
  --accent: #435DFD;
  --accent-foreground: #FFFFFF;
  --background: #F4F4FE;
  --foreground: #101626;
  --card: #FFFFFF;
  --card-foreground: #101626;
  --secondary: #EFEFFC;
  --muted: #EFEFFC;
  --muted-foreground: #494F60;
  --border: #D6D6E3;
  --deep: #331F6E;
  --cyan: #3598E0;
  --radius: 0.75rem;
  --font-display: 'Bilmond', 'Inter', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--foreground); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo span { color: var(--primary); }
.header-nav { display: flex; align-items: center; gap: 1rem; font-size: 0.875rem; font-weight: 500; }
.header-nav a { color: var(--muted-foreground); }
.header-nav a:hover { color: var(--foreground); text-decoration: none; }
.header-nav .pill {
  background: rgba(151,121,240,0.1); color: var(--primary);
  border-radius: 9999px; padding: 0.25rem 0.75rem;
}
.header-nav .pill:hover { background: rgba(151,121,240,0.2); color: var(--primary); }

/* Hero */
.hero {
  background: linear-gradient(160deg, #101626 0%, #1a1040 25%, #331F6E 45%, #435DFD 70%, #9779F0 100%);
  color: #fff; padding: 4rem 0 3.5rem;
}
.hero .eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 9999px;
  padding: 0.3rem 0.9rem; margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; max-width: 46rem;
}
.hero p { margin-top: 1rem; font-size: 1.125rem; color: rgba(255,255,255,0.85); max-width: 42rem; }
.hero .hero-stats { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.75); }
.hero .hero-stats strong { color: #fff; font-size: 1.25rem; display: block; font-weight: 700; }
.hero-item { background: linear-gradient(160deg, #101626 0%, #1a1040 30%, #331F6E 60%, #435DFD 100%); padding: 2.5rem 0 2.25rem; }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.8125rem; color: rgba(255,255,255,0.7); margin-bottom: 1.25rem; }
.breadcrumbs a { color: rgba(255,255,255,0.85); }
.breadcrumbs.on-light { color: var(--muted-foreground); }
.breadcrumbs.on-light a { color: var(--muted-foreground); }
.breadcrumbs .sep { margin: 0 0.4rem; opacity: 0.6; }

/* Filter bar */
.filter-bar {
  position: sticky; top: 3.5rem; z-index: 30;
  background: rgba(244,244,254,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); padding: 0.75rem 0;
}
.filter-bar .container { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filter-bar select {
  appearance: none; font: inherit; font-size: 0.8125rem; font-weight: 500;
  color: var(--foreground); background: var(--card);
  border: 1px solid var(--border); border-radius: 9999px;
  padding: 0.4rem 2rem 0.4rem 0.9rem; cursor: pointer; max-width: 13rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23494F60' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center;
}
.filter-bar select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.filter-bar select.active { border-color: var(--primary); background-color: rgba(151,121,240,0.1); color: var(--deep); }
.filter-count { font-size: 0.8125rem; color: var(--muted-foreground); margin-left: auto; white-space: nowrap; }
.filter-count strong { color: var(--foreground); }
.filter-clear {
  font-size: 0.8125rem; font-weight: 500; color: var(--accent);
  background: none; border: none; cursor: pointer; padding: 0.4rem 0.5rem; display: none; font-family: inherit;
}
.filter-clear.visible { display: inline-block; }

/* Card grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.25rem; padding: 2rem 0 3rem; }
.video-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.video-card:hover { box-shadow: 0 8px 24px rgba(67,93,253,0.12); border-color: rgba(151,121,240,0.5); transform: translateY(-2px); }
.video-card a.card-link { color: inherit; display: flex; flex-direction: column; height: 100%; }
.video-card a.card-link:hover { text-decoration: none; }
.thumb { position: relative; aspect-ratio: 16/9; background: var(--deep); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-badge {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.play-badge span {
  width: 3rem; height: 3rem; border-radius: 9999px;
  background: rgba(16,22,38,0.75); display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.video-card:hover .play-badge span { background: var(--primary); transform: scale(1.08); }
.play-badge svg { width: 1.1rem; height: 1.1rem; fill: #fff; margin-left: 2px; }
.runtime-badge {
  position: absolute; bottom: 0.5rem; right: 0.5rem;
  background: rgba(16,22,38,0.85); color: #fff; font-size: 0.6875rem; font-weight: 600;
  border-radius: 0.375rem; padding: 0.15rem 0.45rem;
}
.card-body { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card-body h3 { font-size: 1rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.card-meta { font-size: 0.8125rem; color: var(--muted-foreground); }
.card-summary {
  font-size: 0.875rem; color: var(--muted-foreground);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: auto; padding-top: 0.5rem; }
.chip {
  display: inline-block; border-radius: 9999px; padding: 0.2rem 0.7rem;
  font-size: 0.6875rem; font-weight: 600;
  background: rgba(67,93,253,0.12); color: var(--accent);
}
.chip.violet { background: rgba(151,121,240,0.12); color: #6b48d6; }
.chip.dark { background: var(--secondary); color: var(--muted-foreground); }
a.chip:hover { text-decoration: none; background: rgba(67,93,253,0.2); }
.no-results { padding: 3rem 0; text-align: center; color: var(--muted-foreground); display: none; }

/* Browse section */
.browse { padding: 1rem 0 4rem; }
.browse h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.25rem; }
.browse p.lead { color: var(--muted-foreground); font-size: 0.9375rem; margin-bottom: 1.25rem; }
.browse h3 { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); margin: 1.5rem 0 0.6rem; }
.browse .chips { padding-top: 0; }
.browse .chip { font-size: 0.8125rem; padding: 0.35rem 0.9rem; }

/* Item page */
.item-header h1 { font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; max-width: 50rem; }
.item-meta { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.875rem; color: rgba(255,255,255,0.8); align-items: center; }
.item-meta strong { color: #fff; font-weight: 600; }
.item-header .chips { padding-top: 0.9rem; }
.item-header .chip { background: rgba(255,255,255,0.16); color: #fff; }
.item-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.5rem; padding: 2.5rem 0 4rem; align-items: start; }
@media (max-width: 56rem) { .item-layout { grid-template-columns: 1fr; } }

/* Player facade */
.player {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; background: var(--deep);
  box-shadow: 0 8px 30px rgba(16,22,38,0.25);
}
.player img { width: 100%; height: 100%; object-fit: cover; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player button.facade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: rgba(16,22,38,0.25); border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.player button.facade span {
  width: 4.5rem; height: 4.5rem; border-radius: 9999px;
  background: rgba(151,121,240,0.92); box-shadow: 0 4px 20px rgba(16,22,38,0.4);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.player button.facade:hover span { transform: scale(1.1); background: var(--accent); }
.player button.facade svg { width: 1.6rem; height: 1.6rem; fill: #fff; margin-left: 4px; }
.player button.facade .facade-hint {
  position: absolute; bottom: 0.75rem; left: 50%; transform: translateX(-50%);
  width: auto; height: auto; background: rgba(16,22,38,0.8); border-radius: 9999px;
  color: rgba(255,255,255,0.9); font-size: 0.75rem; padding: 0.3rem 0.9rem; box-shadow: none;
}
.player button.facade:hover .facade-hint { transform: translateX(-50%); background: rgba(16,22,38,0.9); }

/* Content blocks */
.content-block { margin-top: 2rem; }
.content-block h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.75rem; }
.content-block p { font-size: 1.0625rem; line-height: 1.75; color: var(--foreground); }
.answer-block {
  margin-top: 2rem; background: var(--card); border: 1px solid var(--border);
  border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 1.5rem;
}
.answer-block h2 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--deep); margin-bottom: 0.6rem; }
.answer-block p { font-size: 1.0625rem; line-height: 1.7; }
.lessons { list-style: none; margin-top: 0.5rem; }
.lessons li { position: relative; padding-left: 1.75rem; margin-bottom: 0.75rem; font-size: 1.0625rem; line-height: 1.6; }
.lessons li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.timestamps { list-style: none; margin-top: 0.5rem; }
.timestamps li { display: flex; gap: 0.9rem; margin-bottom: 0.6rem; font-size: 0.9375rem; }
.timestamps .ts { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent); flex-shrink: 0; }

/* Attribution card */
.attribution {
  margin-top: 2.5rem; border-radius: var(--radius); padding: 1.5rem; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #ede7fb 0%, #e4e0fd 50%, #dfe5ff 100%);
  box-shadow: 0 0 0 1px rgba(151,121,240,0.25), 0 2px 8px rgba(151,121,240,0.12), 0 8px 24px rgba(67,93,253,0.08);
}
.attribution p { font-size: 0.9375rem; color: var(--muted-foreground); margin-bottom: 0.75rem; }
.attribution a.watch-link { font-weight: 700; font-size: 1.0625rem; color: var(--deep); }
.attribution a.watch-link:hover { color: var(--accent); }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 5rem; }
.side-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.side-card h2 { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); margin-bottom: 0.9rem; }
.side-card dl { font-size: 0.875rem; }
.side-card dt { color: var(--muted-foreground); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.75rem; }
.side-card dt:first-child { margin-top: 0; }
.side-card dd { font-weight: 500; }
.vc-cross {
  background: linear-gradient(135deg, #ede7fb 0%, #e4e0fd 50%, #dfe5ff 100%);
  border: 0; box-shadow: 0 0 0 1px rgba(151,121,240,0.25), 0 2px 8px rgba(151,121,240,0.12);
}
.vc-cross p { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 0.6rem; }
.vc-cross a { display: block; font-weight: 600; font-size: 0.9375rem; color: var(--deep); padding: 0.25rem 0; }
.vc-cross a:hover { color: var(--accent); }

/* Related */
.related { padding: 0 0 4rem; }
.related h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 1.25rem; }

/* Facet pages */
.facet-intro { padding: 2rem 0 0; max-width: 46rem; }
.facet-intro p { font-size: 1.125rem; line-height: 1.75; color: var(--muted-foreground); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: rgba(16,22,38,0.04); margin-top: 0; }
.site-footer .container { padding: 2rem 1rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; font-size: 0.875rem; color: var(--muted-foreground); }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: var(--muted-foreground); }
.site-footer a:hover { color: var(--foreground); }

@media (max-width: 40rem) {
  .hero { padding: 3rem 0 2.5rem; }
  .filter-bar select { max-width: 10rem; }
  .filter-count { width: 100%; margin-left: 0; }
}
