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

:root {
  --red: #b91c1c;
  --red-dark: #7f1d1d;
  --red-light: #fca5a5;
  --blue: #1d4ed8;
  --blue-dark: #1e3a5f;
  --blue-light: #93c5fd;
  --purple: #9333ea;
  --purple-dark: #2d1057;
  --purple-light: #d8b4fe;
  --bg: #0e0e0e;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --border: #222222;
  --text: #e5e5e5;
  --text2: #a3a3a3;
  --text3: #666666;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

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

/* BLEED BAR */
.bleed-bar { display: flex; height: 5px; }
.bleed-r { background: var(--red); flex: 1; }
.bleed-mid { background: var(--purple); width: 36px; flex-shrink: 0; }
.bleed-d { background: var(--blue); flex: 1; }

/* MASTHEAD */
.masthead {
  background: var(--bg);
  padding: 18px 24px 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 0.5px solid var(--border);
}
.site-name { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.name-r { color: var(--red); }
.name-p { color: var(--purple); }
.name-b { color: #60a5fa; }
.name-plain { color: var(--text); }
.tagline { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); margin-top: 5px; }
.mast-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.eq-badge { display: flex; align-items: center; gap: 8px; font-size: 18px; color: var(--purple); font-weight: 600; }
.pill-r { background: var(--red-dark); color: var(--red-light); font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 3px; letter-spacing: 0.06em; }
.pill-d { background: var(--blue-dark); color: var(--blue-light); font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 3px; letter-spacing: 0.06em; }
.mast-sub { font-size: 10px; color: var(--text3); letter-spacing: 0.03em; }

/* TICKER */
.ticker { background: var(--bg2); border-bottom: 0.5px solid var(--border); padding: 7px 0; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 60px; animation: ticker 40s linear infinite; }
.ticker-track span { font-size: 11px; color: var(--text3); letter-spacing: 0.03em; }
.tick-r { color: #ef4444; font-weight: 600; }
.tick-d { color: #60a5fa; font-weight: 600; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* NAV */
nav { background: var(--bg2); display: flex; border-bottom: 0.5px solid var(--border); overflow-x: auto; }
nav a {
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  padding: 11px 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s;
}
nav a:hover { color: var(--purple-light); }
nav a.active { color: var(--purple-light); border-bottom-color: var(--purple); background: var(--bg); }

/* LAYOUT */
.page-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .page-body { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .masthead { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* MAIN */
.main { padding: 20px; border-right: 0.5px solid var(--border); }

/* SECTION LABEL */
.section-lbl, .section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-lbl::after, .section-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--border);
}

/* PAGE HERO — inner pages — chained.jpg is landscape, works perfectly */
.page-hero {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
}
.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: brightness(0.38);
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}
.page-hero-title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.page-hero-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0,0,0,0.8);
}

/* FEATURED CARD */
.featured-card { border: 0.5px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.feat-banner { display: flex; height: 4px; }
.ban-r { background: var(--red); flex: 1; }
.ban-p { background: var(--purple); width: 28px; }
.ban-d { background: var(--blue); flex: 1; }
.feat-body { padding: 16px; background: var(--bg2); }
.feat-kicker { font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--purple); margin-bottom: 7px; }
.feat-hed { font-size: 17px; font-weight: 600; color: var(--text); line-height: 1.35; margin-bottom: 8px; }
.feat-dek { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 12px; }
.vote-bar-wrap { margin-bottom: 6px; }
.vote-bar { display: flex; height: 22px; border-radius: 3px; overflow: hidden; margin-bottom: 5px; }
.vb-r { background: var(--red-dark); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--red-light); font-weight: 600; min-width: 40px; }
.vb-d { background: var(--blue-dark); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--blue-light); font-weight: 600; min-width: 40px; }
.vote-label { font-size: 10px; color: var(--text3); }
.feat-source { font-size: 11px; color: var(--text3); margin-top: 10px; }

/* ARTICLE ROWS */
.article-list { display: flex; flex-direction: column; }
.art-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 0.5px solid var(--border); align-items: flex-start; }
.art-row:last-child { border-bottom: none; }
.cat-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  margin-top: 2px;
  display: inline-block;
  flex-shrink: 0;
}
.cp-betrayal { background: #2d1057; color: #c084fc; }
.cp-data      { background: #0c2a4a; color: #7dd3fc; }
.cp-receipts  { background: #450a0a; color: #fca5a5; }
.cp-dossier   { background: #14532d; color: #86efac; }
.cp-shame     { background: #3b1f1f; color: #fda4af; }
.art-hed { font-size: 13px; font-weight: 600; color: #d4d4d4; line-height: 1.35; margin-bottom: 4px; }
.art-meta { font-size: 11px; color: var(--text3); }

/* SIDEBAR */
.sidebar { background: #0a0a0a; padding: 16px; }
.stat-card { background: var(--bg2); border: 0.5px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.stat-lbl { font-size: 10px; color: var(--text3); letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 3px; }
.stat-val { font-size: 22px; font-weight: 700; line-height: 1.1; }
.stat-val.red { color: #ef4444; }
.stat-val.blue { color: #60a5fa; }
.stat-val.purple { color: var(--purple); }
.stat-sub { font-size: 10px; color: var(--text3); margin-top: 3px; }

.shame-row { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; border-bottom: 0.5px solid #141414; }
.shame-row:last-child { border-bottom: none; }
.av { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.av-r { background: var(--red-dark); color: var(--red-light); }
.av-d { background: var(--blue-dark); color: var(--blue-light); }
.shame-name { font-size: 12px; font-weight: 600; color: #d4d4d4; }
.shame-sin { font-size: 10px; color: var(--text3); line-height: 1.4; margin-top: 1px; }

/* FOOTER */
footer { background: #0a0a0a; border-top: 0.5px solid var(--border); padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-left { font-size: 11px; color: var(--text3); font-style: italic; }
.footer-right { font-size: 11px; color: var(--purple); font-weight: 600; }

/* LOADING */
.loading { text-align: center; padding: 40px; color: var(--text3); font-size: 13px; }

/* INNER PAGE HEADER */
.page-title { font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.page-sub { font-size: 13px; color: var(--text3); }

/* PODCAST CARDS */
.podcast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 24px; }
.podcast-card { background: var(--bg2); border: 0.5px solid var(--border); border-radius: 10px; overflow: hidden; }
.podcast-thumb { width: 100%; aspect-ratio: 16/9; background: #1a1a1a; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.podcast-thumb img { width: 100%; height: 100%; object-fit: cover; }
.podcast-thumb-placeholder { width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 40px; background: #111; }
.podcast-body { padding: 12px 14px; }
.podcast-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.podcast-host { font-size: 11px; color: var(--text3); margin-bottom: 6px; }
.podcast-desc { font-size: 12px; color: var(--text2); line-height: 1.5; margin-bottom: 10px; }
.podcast-lean { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; display: inline-block; margin-bottom: 10px; }
.lean-left { background: #0c2a4a; color: #7dd3fc; }
.lean-right { background: #450a0a; color: #fca5a5; }
.lean-independent { background: #1a1a2e; color: #c084fc; }
.lean-libertarian { background: #14532d; color: #86efac; }
.podcast-listen { display: inline-block; font-size: 11px; font-weight: 600; color: var(--purple); letter-spacing: 0.06em; text-transform: uppercase; border: 0.5px solid var(--purple); padding: 5px 12px; border-radius: 3px; transition: background 0.15s; }
.podcast-listen:hover { background: var(--purple); color: #fff; }
.podcast-embed { width: 100%; border: none; border-top: 0.5px solid var(--border); }

/* VIDEO CARDS */
.video-featured { background: var(--bg2); border: 0.5px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.video-embed-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-body { padding: 14px; }
.video-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.35; }
.video-desc { font-size: 13px; color: var(--text2); line-height: 1.5; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.video-card { background: var(--bg2); border: 0.5px solid var(--border); border-radius: 10px; overflow: hidden; text-decoration: none; display: block; transition: border-color 0.15s; }
.video-card:hover { border-color: var(--purple); }
.video-thumb { width: 100%; aspect-ratio: 16/9; background: #1a1a1a; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; width: 44px; height: 44px; background: rgba(147,51,234,0.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; }
.video-card-body { padding: 12px 14px; }
.video-card-title { font-size: 13px; font-weight: 600; color: #d4d4d4; line-height: 1.35; margin-bottom: 4px; }
.video-card-meta { font-size: 11px; color: var(--text3); }

/* PORTFOLIO */
.portfolio-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.portfolio-table th { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); padding: 8px 12px; text-align: left; border-bottom: 0.5px solid var(--border); }
.portfolio-table td { padding: 10px 12px; border-bottom: 0.5px solid #141414; color: #d4d4d4; vertical-align: top; }
.portfolio-table tr:last-child td { border-bottom: none; }
.portfolio-table tr:hover td { background: #0a0a0a; }
.trade-buy { color: #86efac; font-weight: 600; }
.trade-sell { color: #fca5a5; font-weight: 600; }
.outperform { color: #86efac; font-weight: 700; }
.underperform { color: #fca5a5; }

/* PARTY BADGES */
.party-r { background: var(--red-dark); color: var(--red-light); }
.party-d { background: var(--blue-dark); color: var(--blue-light); }
