:root {
  --bg: #0d0b14;
  --panel: #161222;
  --panel-2: #1e1a2d;
  --primary: #8c5bff;
  --primary-2: #a66bff;
  --text: #f2ecff;
  --muted: #bfb8d6;
  --outline: #2b2440;
  --glow: 0 10px 40px rgba(140, 91, 255, 0.35);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  background: radial-gradient(circle at 20% 20%, rgba(140, 91, 255, 0.15), transparent 40%),
              radial-gradient(circle at 80% 10%, rgba(80, 130, 255, 0.12), transparent 42%),
              var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  margin: 0;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--primary-2); }

.dark-body { background: transparent; }

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(13, 11, 20, 0.8);
  border-bottom: 1px solid var(--outline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px;
}

.brand a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--outline);
  padding: 4px;
  box-shadow: var(--glow);
}

.brand i { color: var(--primary); }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  font-size: 14px;
  color: var(--muted);
}

.main-nav a:hover { border-color: var(--outline); color: var(--text); box-shadow: var(--glow); }

.page-shell { padding: 32px 28px 80px; }

.hero-panel {
  background: linear-gradient(135deg, rgba(140, 91, 255, 0.3), rgba(24, 21, 40, 0.95)),
              linear-gradient(90deg, rgba(12, 10, 20, 0.9), rgba(12, 10, 20, 0.4));
  border: 1px solid var(--outline);
  box-shadow: var(--glow);
  border-radius: 24px;
  padding: 32px;
  padding-left: 220px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
  position: relative;
}

.hero-logo-float {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 180px;
  z-index: 2;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.55));
  pointer-events: none;
}

.hero-logo-float img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--outline);
  background: rgba(255,255,255,0.04);
}

.hero-copy h1 { margin: 0 0 12px; font-size: 32px; }
.hero-copy p { color: var(--muted); margin: 0 0 12px; max-width: 720px; }
.hero-actions { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }

.btn { border-radius: 12px; font-weight: 600; }
.btn-primary { background: linear-gradient(90deg, var(--primary), var(--primary-2)); border: none; box-shadow: var(--glow); }
.btn-ghost { background: rgba(255,255,255,0.05); border: 1px solid var(--outline); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-2); }

.hero-stats { display: flex; gap: 8px; align-items: flex-start; flex-direction: column; }
.stat-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.brand-mark { font-weight: 700; color: var(--primary-2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.section-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--outline);
  padding: 18px;
  border-radius: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.section-card:hover { transform: translateY(-2px); box-shadow: var(--glow); border-color: var(--primary); }

.card-header { display: flex; gap: 12px; align-items: center; }
.overline { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: 0.4px; }
.card-description { color: var(--muted); margin: 6px 0 0; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.topic-pill { background: rgba(255,255,255,0.04); border: 1px solid var(--outline); padding: 6px 10px; border-radius: 999px; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.topic-pill i { font-size: 12px; margin-right: 2px; }
.topic-pill--debate { padding: 8px 12px; min-height: 44px; box-shadow: var(--glow); }
.topic-pill--debate .pill-thumb { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; border: 1px solid var(--outline); background: rgba(255,255,255,0.04); }
.topic-pill--debate .pill-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.topic-pill--debate .pill-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }

.thumb-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.thumb { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--outline); }
.thumb img { width: 100%; height: 90px; object-fit: cover; display: block; }
.thumb-title { position: absolute; left: 8px; bottom: 6px; right: 8px; font-size: 11px; color: #fefefe; text-shadow: 0 2px 6px rgba(0,0,0,0.8); }

.card-footer { color: var(--primary-2); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.card-footer-actions { display: flex; justify-content: flex-start; align-items: center; gap: 10px; margin-top: 8px; }
.pill-action { background: rgba(255,255,255,0.04); border: 1px solid var(--outline); border-radius: 999px; padding: 8px 14px; color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--glow); }
.pill-action:hover { border-color: var(--primary); color: var(--primary-2); }

.logo-badge {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(140, 91, 255, 0.3), rgba(140, 91, 255, 0.1));
  border: 1px solid var(--outline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-2);
  font-size: 22px;
  box-shadow: var(--glow);
}

.section-hero {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--outline);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
}

.section-hero h1 { margin: 6px 0; }
.section-hero ul { padding-left: 18px; color: var(--muted); }

.topic-detail { background: var(--panel-2); border-radius: 12px; border: 1px solid var(--outline); padding: 12px; margin-top: 8px; }
.topic-head { display: flex; align-items: center; gap: 8px; color: var(--primary-2); }
.topic-detail p { margin: 6px 0; color: var(--muted); }
.topic-detail li { color: var(--muted); }

.search-bar { display: flex; gap: 10px; align-items: center; margin-top: 14px; background: var(--panel-2); padding: 8px 10px; border-radius: 12px; border: 1px solid var(--outline); }
.search-bar input { flex: 1; background: transparent; border: none; color: var(--text); outline: none; }
.search-bar i { color: var(--primary-2); }

.search-panel { margin: 12px 0 8px; }
.muted-hint { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.empty-note { margin: 8px 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--outline); background: rgba(255,255,255,0.04); color: var(--muted); }

.donation-banner {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.donation-banner img {
  width: min(960px, 100%);
  border-radius: 16px;
  border: 1px solid var(--outline);
  box-shadow: var(--glow);
  background: rgba(255,255,255,0.03);
}

.video-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; }
.player-column, .list-column { background: var(--panel); border: 1px solid var(--outline); border-radius: 16px; padding: 14px; }
.player-frame { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid var(--outline); box-shadow: var(--glow); }
.player-frame iframe { width: 100%; height: 100%; border: none; }
.player-meta { margin-top: 10px; color: var(--muted); }

.video-list { display: flex; flex-direction: column; gap: 10px; max-height: 70vh; overflow: auto; padding-right: 4px; }
.video-card { display: grid; grid-template-columns: 160px 1fr; gap: 12px; border: 1px solid var(--outline); border-radius: 12px; background: var(--panel-2); cursor: pointer; transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease; }
.video-card:hover { transform: translateY(-1px); box-shadow: var(--glow); border-color: var(--primary); }
.video-card.active { border-color: var(--primary); box-shadow: var(--glow); }
.video-card .thumb { height: 100%; border-radius: 12px 0 0 12px; border-right: 1px solid var(--outline); position: relative; }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card .thumb .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.5)); opacity: 0; transition: opacity 120ms ease; }
.video-card:hover .thumb .play { opacity: 1; }
.video-copy { padding: 10px 10px 12px; }
.video-copy h3 { margin: 0 0 6px; font-size: 17px; }
.video-copy p { margin: 0 0 8px; color: var(--muted); max-height: 72px; overflow: hidden; }
.video-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }

.site-footer { margin-top: 32px; padding: 16px 28px; border-top: 1px solid var(--outline); color: var(--muted); background: rgba(12, 10, 20, 0.85); }
.footer-content { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

@media (max-width: 980px) {
  .hero-panel { grid-template-columns: 1fr; padding-left: 24px; padding-top: 48px; }
  .video-layout { grid-template-columns: 1fr; }
  .video-card { grid-template-columns: 1fr; }
  .top-bar { position: static; flex-direction: column; align-items: flex-start; gap: 10px; }

  .hero-logo-float { position: relative; width: 160px; top: 0; left: 0; margin-bottom: 12px; }
}

/* Debates */
.hero-art img {
  max-height: 220px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.qa-card {
  background: linear-gradient(135deg, #0f172a 0%, #0b1220 100%);
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.qa-card h4 { margin-bottom: 0.5rem; }

.qa-stance, .qa-rebuttal {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.qa-stance.sci {
  background: rgba(34, 197, 235, 0.08);
  border-color: rgba(34, 197, 235, 0.2);
}

.qa-stance.fe {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
}