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

:root {
  --bg: #0e0e11;
  --bg2: #16161b;
  --bg3: #1e1e26;
  --bg4: #26262f;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --text: #f0f0f0;
  --text2: #aaa;
  --text3: #666;
  --accent: #a78bfa;
  --accent2: #7c3aed;
  --accent-bg: rgba(167,139,250,0.1);
  --sans: 'DM Sans', sans-serif;
  --serif: 'DM Serif Display', serif;
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1200px;
  --gap: 24px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { font-weight: 500; line-height: 1.2; }

/* ── Container ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; gap: 24px;
  height: 60px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.brand-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-family: var(--serif); font-size: 17px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text2);
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--text); background: var(--bg3); }
.nav-toggle { display: none; background: none; border: none; color: var(--text2); cursor: pointer; padding: 4px; }

/* ── Hero ── */
.hero {
  padding: 80px 0 64px;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.15) 0%, transparent 70%);
  text-align: center;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.1rem; color: var(--text2);
  max-width: 560px; margin: 0 auto 32px;
}
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: white;
  border-radius: 24px;
  font-size: 15px; font-weight: 500;
  transition: background .15s, transform .15s;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-secondary {
  display: inline-block;
  padding: 9px 20px;
  border: 1px solid var(--border2);
  border-radius: 20px;
  font-size: 13px; color: var(--text2);
  transition: all .15s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ── Sections ── */
.section { padding: 56px 0; }
.section-alt { background: var(--bg2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-family: var(--serif); font-size: 1.6rem; letter-spacing: -0.01em; }
.see-all { font-size: 13px; color: var(--accent); }
.see-all:hover { text-decoration: underline; }

/* ── Category grid ── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border-radius: var(--radius);
  background: var(--bg3); border: 1px solid var(--border);
  transition: border-color .2s, transform .15s;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat-icon { font-size: 28px; flex-shrink: 0; }
.cat-card h3 { font-size: 15px; font-weight: 500; margin-bottom: 2px; }
.cat-card p { font-size: 12px; color: var(--text3); line-height: 1.4; }

/* ── Show grid ── */
.show-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.show-grid-lg { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.show-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, transform .15s;
  display: flex; flex-direction: column;
}
.show-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.show-art { aspect-ratio: 1; background: var(--bg4); overflow: hidden; }
.show-art img { width: 100%; height: 100%; object-fit: cover; }
.show-art-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 36px; }
.show-info { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.show-info h2, .show-info h3 { font-size: 14px; font-weight: 500; line-height: 1.3; }
.show-author { font-size: 12px; color: var(--text3); }
.show-desc { font-size: 12px; color: var(--text2); line-height: 1.45; margin-top: 4px; flex: 1; }
.ep-count { font-size: 11px; color: var(--text3); margin-top: 4px; }

/* ── Category badges ── */
.cat-badge {
  display: inline-block;
  font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 9px; border-radius: 20px; margin-bottom: 4px;
}
.cat-tech    { background: rgba(167,139,250,.15); color: #a78bfa; }
.cat-science { background: rgba(52,211,153,.15);  color: #34d399; }
.cat-news    { background: rgba(96,165,250,.15);  color: #60a5fa; }
.cat-business{ background: rgba(251,191,36,.15);  color: #fbbf24; }
.cat-crime   { background: rgba(251,113,133,.15); color: #fb7185; }

/* ── Episode list ── */
.ep-list { display: flex; flex-direction: column; gap: 2px; }
.ep-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background .12s, border-color .12s;
}
.ep-row:hover { background: var(--bg2); border-color: var(--border); }
.ep-art-sm {
  width: 52px; height: 52px; border-radius: 9px;
  flex-shrink: 0; background: var(--bg4); overflow: hidden;
}
.ep-art-sm img { width: 100%; height: 100%; object-fit: cover; }
.ep-body { flex: 1; min-width: 0; }
.ep-show { font-size: 11px; color: var(--accent); display: block; margin-bottom: 2px; }
.ep-body h4 { font-size: 14px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-body h3 { font-size: 14px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-meta, .ep-desc { font-size: 12px; color: var(--text3); margin-top: 3px; }
.ep-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-arrow { color: var(--text3); font-size: 14px; flex-shrink: 0; }

/* ── Page head ── */
.page-head { padding: 40px 0 32px; }
.page-head h1 { font-family: var(--serif); font-size: 2.2rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.page-head p { color: var(--text2); font-size: 1rem; }

/* ── Filter bar ── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-chip {
  padding: 6px 18px; border-radius: 20px;
  border: 1px solid var(--border2); background: none;
  font-size: 13px; color: var(--text2);
  transition: all .15s;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: white; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: var(--text3);
  padding: 24px 0 16px;
}
.breadcrumb a { color: var(--text2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text3); }

/* ── Show hero ── */
.show-hero {
  display: flex; gap: 32px; align-items: flex-start;
  padding: 24px 0 40px; flex-wrap: wrap;
}
.show-hero-art { flex-shrink: 0; }
.show-hero-art img { width: 200px; height: 200px; border-radius: var(--radius); object-fit: cover; }
.show-hero-info { flex: 1; min-width: 240px; }
.show-hero-info h1 { font-family: var(--serif); font-size: 2rem; letter-spacing: -0.02em; margin: 8px 0 6px; }
.show-author-lg { font-size: 14px; color: var(--text3); margin-bottom: 12px; }
.show-desc-lg { font-size: 15px; color: var(--text2); line-height: 1.65; margin-bottom: 14px; max-width: 560px; }
.show-meta-row { display: flex; gap: 16px; font-size: 13px; color: var(--text3); margin-bottom: 16px; }

/* ── Episode section on show page ── */
.ep-section { padding: 16px 0 48px; }
.ep-section h2 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 16px; }
.ep-count-label { font-size: 1rem; color: var(--text3); font-family: var(--sans); font-weight: 400; }
.ep-list-full .ep-row { border-bottom: 1px solid var(--border); border-radius: 0; padding: 16px 8px; }
.ep-list-full .ep-row:hover { background: var(--bg2); border-radius: var(--radius-sm); border-bottom-color: transparent; }
.ep-num-col { width: 80px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; }
.ep-num { font-size: 11px; color: var(--accent); }
.ep-date { font-size: 11px; color: var(--text3); }
.ep-dur-col { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.ep-dur { font-size: 12px; color: var(--text3); }
.ep-play-icon { font-size: 11px; color: var(--accent); opacity: 0; transition: opacity .15s; }
.ep-row:hover .ep-play-icon { opacity: 1; }

/* ── Episode page ── */
.ep-page { max-width: 760px; padding-bottom: 64px; }
.ep-header { padding: 16px 0 28px; }
.ep-show-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--accent); margin-bottom: 16px;
  border: 1px solid var(--accent-bg);
  padding: 6px 12px; border-radius: 20px;
  transition: background .15s;
}
.ep-show-link:hover { background: var(--accent-bg); }
.ep-show-thumb { width: 24px; height: 24px; border-radius: 5px; object-fit: cover; }
.ep-header h1 { font-family: var(--serif); font-size: 1.8rem; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 12px; }
.ep-header-meta { display: flex; gap: 10px; font-size: 13px; color: var(--text3); align-items: center; }

/* ── Audio player ── */
.audio-player {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 20px;
  margin-bottom: 32px;
}
.player-ui { display: flex; gap: 16px; align-items: center; }
.player-art { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.player-art img { width: 100%; height: 100%; object-fit: cover; }
.player-center { flex: 1; min-width: 0; }
.player-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.player-show { font-size: 11px; color: var(--text3); margin-bottom: 12px; }
.player-controls { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.ctrl { background: none; border: none; cursor: pointer; color: var(--text2); display: flex; align-items: center; padding: 0; transition: color .15s; }
.ctrl:hover { color: var(--text); }
.play-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent) !important; color: white !important;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.play-btn:hover { background: var(--accent2) !important; transform: scale(1.05); }
.progress-row { display: flex; align-items: center; gap: 8px; }
.time { font-size: 11px; color: var(--text3); font-variant-numeric: tabular-nums; min-width: 36px; }
.progress-track {
  flex: 1; height: 3px; background: var(--bg4); border-radius: 2px; cursor: pointer;
}
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; width: 0%; transition: width .4s linear; }
.no-audio { padding: 20px; background: var(--bg3); border-radius: var(--radius-sm); color: var(--text3); font-size: 14px; margin-bottom: 24px; }

/* ── Episode content ── */
.ep-content { margin-bottom: 32px; }
.ep-content h2 { font-size: 1.1rem; margin-bottom: 12px; color: var(--text2); }
.ep-body-text { font-size: 15px; color: var(--text2); line-height: 1.7; }
.ep-footer { padding-top: 8px; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 40px; background: var(--bg2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-desc { font-size: 13px; color: var(--text3); margin-top: 10px; line-height: 1.6; max-width: 260px; }
.site-footer h4 { font-size: 13px; font-weight: 500; margin-bottom: 12px; color: var(--text2); }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer ul a { font-size: 13px; color: var(--text3); transition: color .15s; }
.site-footer ul a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; }
.footer-bottom p { font-size: 12px; color: var(--text3); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .site-header.nav-open .site-nav {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    padding: 12px 20px; gap: 2px; z-index: 49;
  }
  .hero { padding: 48px 0 40px; }
  .show-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .show-grid-lg { grid-template-columns: 1fr; }
  .show-hero { flex-direction: column; }
  .show-hero-art img { width: 140px; height: 140px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .ep-header h1 { font-size: 1.4rem; }
  .ep-num-col { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
}
