@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

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

:root {
  --font-mono: 'JetBrains Mono', monospace;
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --border: #222;
  --text: #e0e0e0;
  --text-muted: #888;
  --text-dim: #555;
  --accent: #4ecdc4;
  --accent-dim: #2a7a74;
  --verdict-true: #2ecc71;
  --verdict-mostly-true: #87d37c;
  --verdict-misleading: #f39c12;
  --verdict-mixed: #e67e22;
  --verdict-unverifiable: #95a5a6;
  --verdict-mostly-false: #e74c3c;
  --verdict-false: #c0392b;
  --verdict-fearmongering: #d35400;
}

html {
  font-size: 15px;
}

body {
  font-family: var(--font-mono);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.site-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.site-header .subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Intro */
.intro {
  margin-bottom: 48px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
}

.intro p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.intro p:last-child {
  margin-bottom: 0;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.video-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
  transition: background 0.2s;
}

.video-card:hover {
  background: var(--bg-card-hover);
}

.video-card a {
  text-decoration: none;
  color: inherit;
}

.video-card .thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.video-card .card-body {
  padding: 16px;
}

.video-card .card-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card .card-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Verdict Badge */
.verdict-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.verdict-badge.true { background: var(--verdict-true); color: #000; }
.verdict-badge.mostly-true { background: var(--verdict-mostly-true); color: #000; }
.verdict-badge.misleading { background: var(--verdict-misleading); color: #000; }
.verdict-badge.mixed { background: var(--verdict-mixed); color: #000; }
.verdict-badge.unverifiable { background: var(--verdict-unverifiable); color: #000; }
.verdict-badge.mostly-false { background: var(--verdict-mostly-false); color: #fff; }
.verdict-badge.false { background: var(--verdict-false); color: #fff; }
.verdict-badge.fearmongering { background: var(--verdict-fearmongering); color: #000; }

/* Detail Page */
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.back-link:hover {
  color: var(--accent);
}

.video-detail-header {
  margin-bottom: 32px;
}

.video-detail-header h1 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.video-detail-header .meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.video-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 24px;
}

.overall-verdict {
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  margin-bottom: 32px;
}

.overall-verdict .verdict-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.overall-verdict .verdict-badge {
  font-size: 1rem;
  padding: 4px 16px;
}

.summary {
  margin-bottom: 32px;
}

.summary h2,
.claims-section h2,
.source-quality h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.summary p {
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: var(--text);
}

/* Claims */
.claim-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 16px;
  background: var(--bg-card);
}

.claim-card .claim-text {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--accent-dim);
}

.claim-card .claim-timestamp {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.claim-card .claim-verdict {
  margin-bottom: 12px;
}

.claim-card .claim-evidence {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.claim-card .claim-sources {
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.claim-card .claim-sources a {
  display: block;
  margin-bottom: 4px;
  word-break: break-all;
}

.claim-card .claim-notes {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
}

/* Transcript */
.transcript-section {
  margin-bottom: 48px;
}

.transcript-section h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.transcript-section p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.transcript-section p:last-child {
  margin-bottom: 0;
}

.transcript-timestamp {
  color: var(--accent-dim);
  font-size: 0.7rem;
  font-weight: 500;
  margin-right: 4px;
}

/* Article Transcript */
.transcript-article {
  margin-bottom: 24px;
}

.transcript-article p {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.8;
}

.transcript-article .article-h1 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.transcript-article .article-h2 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 10px;
}

.transcript-article .article-h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 20px;
  margin-bottom: 8px;
}

.transcript-article .article-list {
  margin: 0 0 14px 0;
  padding-left: 20px;
  list-style: disc;
}

.transcript-article .article-list li {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 6px;
}

.transcript-article strong {
  color: #fff;
  font-weight: 600;
}

.transcript-article em {
  font-style: italic;
  color: var(--text);
}

/* Raw transcript toggle */
.raw-transcript-toggle {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
}

.raw-transcript-toggle summary {
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 12px 16px;
  user-select: none;
}

.raw-transcript-toggle summary:hover {
  color: var(--accent);
}

.raw-transcript-toggle .raw-transcript {
  padding: 16px;
  border-top: 1px solid var(--border);
}

/* Source Quality */
.source-quality {
  margin-bottom: 48px;
}

.source-quality p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Fact-check timestamp */
.fact-check-timestamp {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: right;
  margin-bottom: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
  html { font-size: 14px; }
  .container { padding: 0 16px; }
  .site-header { padding: 32px 0 24px; }
  .video-grid { grid-template-columns: 1fr; }
}
