/* No Agenda Archive — Clean & Readable */
/* Bright, high contrast, multi-column layouts */

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

:root {
  /* Light mode - clean and bright */
  --bg-page: #ffffff;
  --bg-card: #f8f9fa;
  --bg-hover: #f0f2f5;
  --bg-accent: #1a1a2e;
  --border: #e1e4e8;
  --border-strong: #d0d4d8;
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --accent: #e53935;
  --accent-light: #ffebee;
  --accent-dark: #c62828;
  --link: #2563eb;
  --success: #22c55e;
  --warning: #f59e0b;
  
  /* Fonts */
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', 'SF Mono', monospace;
  
  /* Spacing */
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
}

/* Dark mode */
[data-theme="dark"] {
  --bg-page: #0f0f0f;
  --bg-card: #1a1a1a;
  --bg-hover: #252525;
  --bg-accent: #ffffff;
  --border: #2a2a2a;
  --border-strong: #3a3a3a;
  --text-primary: #f5f5f5;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;
  --accent: #ff5252;
  --accent-light: rgba(255,82,82,0.15);
  --link: #60a5fa;
}

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

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: white;
}

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

/* ============ HEADER ============ */
.header {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.header__artwork {
  width: 160px;
  height: 160px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.header__artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header__episode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: fit-content;
}

.header__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.3;
}

.header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.header__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__meta-item a {
  color: var(--link);
  text-decoration: none;
}

.header__meta-item a:hover {
  text-decoration: underline;
}

/* ============ PLAYER ============ */
.player {
  background: var(--bg-accent);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: sticky;
  top: 12px;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.player audio {
  width: 100%;
  height: 40px;
}

.player__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 0.75rem;
}

.player__status {
  opacity: 0.7;
}

.player__speed {
  display: flex;
  gap: 4px;
}

.player__speed-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  transition: all 0.15s;
}

.player__speed-btn:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

.player__speed-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ============ TWO-COLUMN GRID ============ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* ============ CARDS ============ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-page);
}

.card__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card__count {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card__body {
  padding: 16px;
  max-height: 420px;
  overflow-y: auto;
}

.card--full .card__body {
  max-height: none;
}

/* ============ COLD OPEN ============ */
.cold-open {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
}

.cold-open__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: 12px;
}

.cold-open__quote {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.5;
}

.cold-open__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.15s;
}

.cold-open__btn:hover {
  background: rgba(255,255,255,0.3);
}

/* ============ STATS BAR ============ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat__label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============ QUOTES ============ */
.quote-item {
  padding: 16px;
  border-left: 3px solid var(--border);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.15s;
  border-radius: 0 6px 6px 0;
  background: var(--bg-page);
}

.quote-item:hover {
  border-left-color: var(--accent);
  background: var(--accent-light);
}

.quote-item:last-child {
  margin-bottom: 0;
}

.quote-item__time {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.quote-item__text {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.5;
}

.quote-item__speaker {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============ CHAPTERS - TWO COLUMN ============ */
.chapters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.chapter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

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

.chapter__time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 50px;
}

.chapter__title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chapter:hover .chapter__title {
  color: var(--text-primary);
}

/* ============ DONATIONS ============ */
.donations-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.donation {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.donation:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.donation__amount {
  font-size: 1rem;
  font-weight: 700;
  color: var(--success);
  min-width: 70px;
}

.donation__name {
  font-size: 0.85rem;
  color: var(--text-primary);
  flex: 1;
}

.donation__title {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.donation__time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============ SEARCH ============ */
.search {
  margin-bottom: 20px;
}

.search__input {
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: all 0.15s;
  box-shadow: var(--shadow);
}

.search__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.search__input::placeholder {
  color: var(--text-muted);
}

.search__results {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============ TRANSCRIPT ============ */
.transcript-card {
  margin-bottom: 20px;
}

.transcript__segment {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  padding: 10px 16px;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

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

.transcript__segment.playing {
  background: var(--accent-light);
  border-left-color: var(--accent);
}

.transcript__time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  user-select: none;
}

.transcript__time:hover {
  text-decoration: underline;
}

.transcript__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.transcript__segment.playing .transcript__text {
  color: var(--text-primary);
}

.transcript__text mark {
  background: var(--warning);
  color: var(--text-primary);
  padding: 1px 4px;
  border-radius: 2px;
}

/* ============ THEME TOGGLE ============ */
.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.15s;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-dark);
}

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer a {
  color: var(--link);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer p {
  margin-bottom: 8px;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .two-col, .three-col {
    grid-template-columns: 1fr;
  }
  
  .chapters-grid {
    grid-template-columns: 1fr;
  }
  
  .donations-list {
    grid-template-columns: 1fr;
  }
  
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  html { font-size: 14px; }
  
  .container { padding: 16px; }
  
  .header {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
    padding: 24px;
  }
  
  .header__artwork {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
  
  .header__episode {
    margin: 0 auto 12px;
  }
  
  .header__meta {
    justify-content: center;
  }
  
  .player { 
    position: relative; 
    top: 0; 
  }
  
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .stat { padding: 16px; }
  .stat__value { font-size: 1.2rem; }
}
