:root {
      --blue:       #4B6BF5;
      --blue-light: #6B83F7;
      --blue-pale:  #EEF2FF;
      --ink:        #111827;
      --night:      #0D1B2E;
      --mid:        #6B7280;
      --canvas:     #F9FAFB;
      --white:      #FFFFFF;
      --rule:       #E5E7EB;
      --yellow:     #F5C518;
      --radius:     10px;
      --radius-pill:100px;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'DM Sans', system-ui, sans-serif;
      background: var(--white);
      color: var(--ink);
      -webkit-font-smoothing: antialiased;
    }
    a { text-decoration: none; color: inherit; }

    /* ─── HEADER ─── */
    .header {
      position: sticky; top: 0; z-index: 100;
      background: rgba(255,255,255,0.97);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--rule);
    }
    .header-inner {
      max-width: 1160px; margin: 0 auto; padding: 0 32px;
      height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
    }
    .logo {
      display: flex; align-items: center; gap: 8px; flex-shrink: 0;
      font-family: 'DM Sans', sans-serif;
      font-size: 14px; font-weight: 800;
      color: var(--ink); letter-spacing: 0.04em; text-transform: uppercase;
    }
    .logo-mark {
      width: 24px; height: 24px;
      background: var(--yellow);
      clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
      transform: rotate(180deg); flex-shrink: 0;
    }
    .nav { display: flex; gap: 28px; list-style: none; }
    .nav a { font-size: 14px; font-weight: 500; color: var(--mid); transition: color 0.15s; }
    .nav a:hover, .nav a.active { color: var(--ink); }
    .nav a.active { font-weight: 700; }
    .header-actions { display: flex; gap: 10px; align-items: center; }
    .btn-ghost {
      padding: 8px 18px; border: 1.5px solid var(--rule);
      border-radius: var(--radius-pill); background: transparent; color: var(--ink);
      font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
      transition: border-color 0.15s;
    }
    .btn-ghost:hover { border-color: var(--mid); }
    .btn-primary {
      padding: 9px 20px; background: var(--yellow); color: var(--ink);
      border: none; border-radius: var(--radius-pill);
      font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit;
      transition: background 0.15s;
    }
    .btn-primary:hover { background: #E0B400; }

    /* ─── PAGE HERO ─── */
    .page-hero {
      background: var(--canvas);
      padding: 72px 24px 64px;
      text-align: center;
      border-bottom: 1px solid var(--rule);
    }
    .page-hero h1 {
      font-family: 'Fraunces', serif;
      font-size: 48px; font-weight: 900;
      color: var(--ink); letter-spacing: -2px; line-height: 1.1;
      margin-bottom: 14px;
    }
    .page-hero p {
      font-size: 17px; color: var(--mid);
      max-width: 520px; margin: 0 auto 32px;
      line-height: 1.6;
    }

    /* Search box */
    .search-box {
      position: relative; max-width: 600px; margin: 0 auto 16px;
    }
    .search-box .search-icon {
      position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
      color: var(--mid); pointer-events: none;
    }
    .search-box input {
      width: 100%;
      padding: 17px 18px 17px 52px;
      border: 1px solid var(--rule); border-radius: var(--radius);
      background: var(--white);
      font-size: 16px; font-family: inherit;
      color: var(--ink); outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .search-box input:focus {
      border-color: var(--blue);
      box-shadow: 0 0 0 3px rgba(75,107,245,0.1);
    }
    .search-box input::placeholder { color: var(--mid); }

    /* Quick search suggestions */
    .quick-search {
      display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
    }
    .quick-pill {
      padding: 6px 16px;
      border: 1px solid var(--rule); border-radius: var(--radius-pill);
      background: var(--white);
      font-size: 13px; font-weight: 500; color: var(--mid);
      cursor: pointer; font-family: inherit;
      transition: border-color 0.15s, color 0.15s;
    }
    .quick-pill:hover { border-color: var(--blue); color: var(--blue); }

    /* ─── CATEGORIES BAR ─── */
    .categories-bar {
      background: var(--white);
      border-bottom: 1px solid var(--rule);
      position: sticky; top: 64px; z-index: 90;
    }
    .categories-inner {
      max-width: 1160px; margin: 0 auto; padding: 0 24px;
      display: flex; align-items: center; gap: 16px;
      height: 56px;
    }
    .cat-label {
      font-size: 12px; font-weight: 700; color: var(--mid);
      text-transform: uppercase; letter-spacing: 0.08em;
      white-space: nowrap; flex-shrink: 0;
    }

    /* Filter pills */
    .filters {
      display: flex; gap: 6px; overflow-x: auto; flex: 1;
      scrollbar-width: none;
    }
    .filters::-webkit-scrollbar { display: none; }
    .filter-pill {
      padding: 5px 14px; border-radius: var(--radius-pill);
      border: 1px solid var(--rule); background: transparent;
      font-size: 13px; font-weight: 500; color: var(--mid);
      cursor: pointer; white-space: nowrap;
      transition: all 0.15s; font-family: inherit;
    }
    .filter-pill:hover { border-color: var(--blue); color: var(--blue); }
    .filter-pill.active {
      background: var(--ink); border-color: var(--ink); color: white;
    }

    /* ─── MAIN LAYOUT ─── */
    .main {
      max-width: 1160px; margin: 0 auto;
      padding: 36px 24px 80px;
    }

    /* Results bar */
    .results-bar {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 24px;
    }
    .results-count {
      font-size: 14px; font-weight: 600; color: var(--mid);
    }
    .results-count span { color: var(--ink); font-weight: 800; }
    .view-toggle { display: flex; gap: 4px; }
    .view-btn {
      width: 32px; height: 32px; border-radius: 8px;
      border: 1.5px solid var(--rule); background: transparent;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      font-size: 14px; color: var(--mid); transition: all 0.15s;
    }
    .view-btn.active { background: var(--ink); border-color: var(--ink); color: white; }

    /* ─── EPISODE GRID ─── */
    .episodes-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
    }
    .episodes-grid.list-view {
      grid-template-columns: 1fr;
    }

    /* ─── EPISODE CARD ─── */
    .ep-card {
      display: flex; flex-direction: column; gap: 10px;
      text-decoration: none; color: inherit;
    }
    .ep-card:hover .ep-thumb { opacity: 0.82; }
    .ep-card.hidden { display: none; }
    .ep-card--read .ep-thumb::after {
      content: '✓';
      position: absolute; top: 8px; right: 8px;
      width: 22px; height: 22px; line-height: 22px;
      background: rgba(16,185,129,0.9); color: #fff;
      border-radius: 50%; font-size: 11px; font-weight: 800;
      text-align: center;
    }
    .ep-card--read .ep-title { color: var(--mid); }

    .ep-thumb {
      width: 100%; aspect-ratio: 16/9;
      border-radius: var(--radius);
      border: 1px solid var(--rule);
      position: relative; overflow: hidden;
      transition: opacity 0.15s;
    }
    .ep-badge {
      position: absolute;
      font-size: 10px; font-weight: 700;
      padding: 3px 8px; border-radius: var(--radius-pill);
    }
    .ep-badge--new {
      top: 8px; left: 8px;
      background: var(--blue); color: white;
      font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em;
    }
    .ep-badge--dur {
      bottom: 8px; right: 8px;
      background: rgba(0,0,0,0.65); color: white;
    }

    .ep-info { display: flex; flex-direction: column; gap: 3px; }
    .ep-podcast {
      font-size: 11px; font-weight: 600; color: var(--blue);
      text-transform: uppercase; letter-spacing: 0.05em;
    }
    .ep-title {
      font-family: 'Fraunces', serif;
      font-size: 14px; font-weight: 700;
      line-height: 1.3; color: var(--ink);
    }
    .ep-guest { font-size: 12px; color: var(--mid); }

    /* List view */
    .episodes-grid.list-view .ep-card {
      flex-direction: row; gap: 16px; align-items: flex-start;
    }
    .episodes-grid.list-view .ep-thumb {
      width: 200px; aspect-ratio: 16/9; flex-shrink: 0;
    }
    .episodes-grid.list-view .ep-info { justify-content: center; padding-top: 4px; }
    .episodes-grid.list-view .ep-title { font-size: 15px; }

    /* ─── EMPTY STATE ─── */
    .empty-state {
      text-align: center; padding: 80px 24px; display: none;
    }
    .empty-state.visible { display: block; }
    .empty-icon { font-size: 48px; margin-bottom: 16px; }
    .empty-state h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
    .empty-state p { font-size: 14px; color: var(--mid); }

    /* ─── LOAD MORE ─── */
    .load-more-wrap { text-align: center; margin-top: 48px; }
    .btn-load-more {
      padding: 13px 36px; background: white;
      border: 1.5px solid var(--rule); border-radius: 12px;
      font-size: 14px; font-weight: 700; color: var(--ink);
      cursor: pointer; font-family: inherit;
      transition: border-color 0.2s, transform 0.1s;
    }
    .btn-load-more:hover { border-color: var(--ink); transform: translateY(-1px); }

    /* ─── CTA BANNER ─── */
    .cta-banner {
      background: var(--night); border-radius: 20px;
      padding: 40px 48px; margin: 48px 0 0;
      display: flex; align-items: center; justify-content: space-between; gap: 32px;
    }
    .cta-banner-text h3 { font-size: 22px; font-weight: 900; color: white; margin-bottom: 6px; letter-spacing: -0.5px; }
    .cta-banner-text p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.5; }
    .cta-banner-text p em { color: var(--blue-light); font-style: normal; font-weight: 600; }
    .btn-cta-banner {
      padding: 13px 28px; background: var(--blue); color: white;
      border: none; border-radius: 12px; font-size: 15px; font-weight: 800;
      cursor: pointer; white-space: nowrap; font-family: inherit;
      transition: background 0.2s, transform 0.1s;
      box-shadow: 0 4px 20px rgba(232,69,10,0.3);
    }
    .btn-cta-banner:hover { background: var(--blue-light); transform: translateY(-1px); }

    /* ─── FOOTER ─── */
    .footer { background: var(--ink); color: rgba(255,255,255,0.4); padding: 32px 24px; text-align: center; font-size: 13px; }
    .footer a { color: var(--blue-light); }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 1024px) {
      .episodes-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 768px) {
      .header-inner { padding: 0 16px; }
      .nav { display: none; }
      .page-hero { padding: 44px 20px 40px; }
      .page-hero h1 { font-size: 30px; letter-spacing: -1px; }
      .page-hero p { font-size: 15px; }
      .categories-inner { padding: 0 16px; }
      .episodes-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
      .episodes-grid.list-view { grid-template-columns: 1fr; }
      .episodes-grid.list-view .ep-thumb { width: 120px; }
      .main { padding: 24px 16px 48px; }
      .cta-banner { flex-direction: column; text-align: center; padding: 32px 20px; }
    }
    @media (max-width: 480px) {
      .page-hero { padding: 32px 16px 32px; }
      .page-hero h1 { font-size: 26px; }
      .episodes-grid { grid-template-columns: 1fr; }
      .view-toggle { display: none; }
      .categories-inner { height: auto; padding: 10px 16px; }
    }