/* Prometheus Podcast Episodes */
.ppe-icon{flex:0 0 auto;vertical-align:-2px}
.ppe-media{display:inline-flex;gap:5px;align-items:center;justify-content:flex-start;color:var(--awb-color6,#5B6178)}

/* Listing rows.
   Wide screens: a real grid with fixed columns, so the date sits at the same x
   on every row regardless of how long the series name is. Every slot is always
   present in the markup (empty when unused) or the columns would shear.
   `display:contents` promotes the body/meta wrappers' children into that grid.
   Narrow screens fall back to two stacked lines, where alignment is impossible
   and legibility matters more. */
.ppe-list-total{color:var(--awb-color6,#5B6178);font-variant-numeric:tabular-nums;margin-bottom:14px}
.ppe-rows{list-style:none;margin:0;padding:0}
/* Columns: artwork | title | S/E | series | date | parts | media.
   The title is the only thing that can use more room, so the fixed columns are
   trimmed to what their content actually needs: the longest S/E label is 9
   chars and the longest date 12, and the parts column is empty on every row
   today (no episode has more than one part since the split). Kept non-zero so
   a future multi-part episode still shows its count rather than silently
   vanishing. Both grids below MUST stay identical or the columns misalign.*/
.ppe-row{display:grid;grid-template-columns:0 minmax(0,1fr) 6.4em;align-items:center;gap:10px;border-bottom:1px solid var(--awb-color3,#E3E8F0)}
body.logged-in .ppe-row{grid-template-columns:32px minmax(0,1fr) 6.4em}
.ppe-row:last-child{border-bottom:0}
/* Highlight the whole row. The link is only the middle cell of the row grid,
   so hovering it left the watched-toggle and premium-chip columns unlit. */
.ppe-row{border-radius:6px;padding:0 12px;transition:background .12s ease}
.ppe-row:hover{background:var(--awb-color2,#F4F6FA)}
.ppe-row-mark{display:flex;justify-content:flex-start}
.ppe-row-flag{display:flex;justify-content:flex-end}

.ppe-row-link{display:grid;grid-template-columns:56px minmax(0,1fr) 5em 12em 6.8em 3.2em 2.6em;align-items:center;gap:14px;min-width:0;padding:10px 8px;text-decoration:none}
.ppe-row-body,.ppe-row-meta{display:contents}
.ppe-dot{display:none}

.ppe-sq{width:56px;height:56px;border-radius:8px;object-fit:cover;display:block;background:var(--awb-color8,#0F1220)}
.ppe-row-title{min-width:0;font-size:.94em;color:var(--awb-color7,#252A3D);line-height:1.35;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ppe-row:hover .ppe-row-title{color:var(--awb-color4,#7A1FB8)}
.ppe-se,.ppe-series,.ppe-row-date,.ppe-nparts,.ppe-media{font-size:.82em;color:var(--awb-color6,#5B6178);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ppe-se{font-variant-numeric:tabular-nums;font-weight:600;color:var(--awb-color5,#1F6F8B)}
.ppe-row-date{font-variant-numeric:tabular-nums}
.ppe-media{display:inline-flex;gap:5px;align-items:center;overflow:visible}

.ppe-premium{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:999px;font-size:.7em;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.ppe-premium .ppe-icon{width:12px;height:12px}
.ppe-premium-cta{border:1px solid var(--awb-color4,#7A1FB8);color:var(--awb-color4,#7A1FB8);text-decoration:none;transition:background .12s ease,color .12s ease}
.ppe-premium-cta:hover{background:var(--awb-color4,#7A1FB8);color:#fff}
.ppe-premium-static{border:1px solid var(--awb-color3,#E3E8F0);background:var(--awb-color2,#F4F6FA);color:var(--awb-color6,#5B6178);cursor:default}

@media(max-width:1000px){
  /* Not enough width for true columns — stack into exactly two lines. */
  .ppe-row-link{display:flex;align-items:center;gap:14px}
  .ppe-row-body{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 auto}
  .ppe-row-meta{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;overflow:hidden;max-width:100%}
  .ppe-dot{display:inline;opacity:.45}
  .ppe-se:empty,.ppe-series:empty,.ppe-nparts:empty{display:none}
  .ppe-se:empty+.ppe-dot,.ppe-series:empty+.ppe-dot,.ppe-nparts:empty+.ppe-dot{display:none}
  .ppe-series{max-width:20ch}
}
@media(max-width:640px){
  .ppe-row-link{gap:11px;padding:9px 4px}
  .ppe-sq{width:52px;height:52px}
  .ppe-series{max-width:14ch}

  /* One line per episode, nothing given a row of its own.
     Dropping the flag onto its own line fixed the title truncation but spent a
     whole row on a 90px chip — trading one waste of space for another. Flex
     instead: the mark sits centred at the left, the flag centred at the right,
     and the title takes everything between them. */
  .ppe-row{display:flex;align-items:center;gap:8px;row-gap:0}
  .ppe-row-mark{flex:0 0 auto;align-self:center;margin:0}
  .ppe-row-link{flex:1 1 auto;min-width:0}
  .ppe-row-flag{flex:0 0 auto;margin:0 0 0 auto;align-self:center}
  /* Two lines of title beats one line plus an ellipsis. */
  .ppe-row-title{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .ppe-row-meta{flex-wrap:wrap;overflow:visible}
}
@media(max-width:560px){
  /* Least informative first: the series repeats on the episode page and the
     part count is a detail. Season/episode, date and media stay. */
  .ppe-series,.ppe-series+.ppe-dot,.ppe-nparts,.ppe-nparts+.ppe-dot{display:none}
  .ppe-row-meta{gap:5px;font-size:.95em}
  .ppe-premium{padding:2px 7px;font-size:.66em}
  .ppe-premium .ppe-icon{width:11px;height:11px}
}
@media(max-width:400px){
  .ppe-premium span{display:none}   /* lock alone still reads as "members only" */
  .ppe-premium{padding:3px 6px}
}

/* Series index */
.ppe-series-index{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin:24px 0}
.ppe-series-card{display:flex;flex-direction:column;gap:6px;padding:18px 20px;border:1px solid var(--awb-color3,#E3E8F0);border-left:3px solid var(--awb-color4,#7A1FB8);border-radius:4px;background:var(--awb-color2,#F4F6FA);text-decoration:none;transition:border-color .15s ease,background .15s ease,transform .15s ease}
.ppe-series-card:hover{background:var(--awb-color1,#fff);border-left-color:var(--awb-color5,#1F6F8B);transform:translateY(-2px)}
.ppe-series-name{font-weight:600;line-height:1.3;color:var(--awb-color7,#252A3D)}
.ppe-series-card:hover .ppe-series-name{color:var(--awb-color4,#7A1FB8)}
.ppe-series-count{font-size:.82em;letter-spacing:.04em;text-transform:uppercase;font-variant-numeric:tabular-nums;color:var(--awb-color6,#5B6178)}

/* Single episode */
.ppe-part{margin:0 0 26px}
.ppe-part-title{margin:0 0 6px;font-size:1.15em}
.ppe-part-desc{margin:0 0 10px;color:var(--awb-color6,#5B6178)}
.ppe-video{margin:0 0 12px}
.ppe-video iframe{max-width:100%;aspect-ratio:16/9;height:auto}
.ppe-locked{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border:1px dashed var(--awb-color4,#7A1FB8);border-radius:4px;color:var(--awb-color4,#7A1FB8);text-decoration:none}
.ppe-locked:hover{background:var(--awb-color2,#F4F6FA)}
@media(prefers-reduced-motion:reduce){.ppe-series-card,.ppe-row,.ppe-premium-cta{transition:none}.ppe-series-card:hover{transform:none}}

/* Watched / listened toggle.
   Idle uses slate, not the pale-ice line colour: at 1.23:1 on white that was
   effectively invisible, and a UI control needs 3:1. Slate measures 6.13:1. */
.ppe-watch{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;margin:0 2px 0 0;border:1px solid var(--awb-color6,#5B6178);border-radius:50%;background:transparent;color:var(--awb-color6,#5B6178);cursor:pointer;transition:color .12s ease,border-color .12s ease,background .12s ease}
.ppe-watch:hover{border-color:var(--awb-color5,#1F6F8B);background:var(--awb-color2,#F4F6FA);color:var(--awb-color5,#1F6F8B)}
.ppe-watch.is-watched{border-color:var(--awb-color5,#1F6F8B);background:var(--awb-color5,#1F6F8B);color:#fff}
.ppe-watch.is-watched:hover{background:var(--awb-color7,#252A3D);border-color:var(--awb-color7,#252A3D)}
.ppe-watch:disabled{opacity:.55;cursor:progress}
.ppe-watch:focus-visible{outline:2px solid var(--awb-color4,#7A1FB8);outline-offset:2px}
.ppe-watch-lg{width:auto;height:auto;gap:9px;padding:9px 18px;border-radius:999px}
.ppe-watch-label{font-size:.82em;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;line-height:1;font-weight:600}
.ppe-mark{margin:0 0 18px}
@media(prefers-reduced-motion:reduce){.ppe-watch{transition:none}}

/* Filter bar. State lives in the URL; the script filters the rendered rows. */
.ppe-filters{margin:0 0 18px}
.ppe-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.ppe-chip{display:inline-flex;align-items:baseline;gap:7px;padding:6px 13px;border:1px solid var(--awb-color3,#E3E8F0);border-radius:999px;background:var(--awb-color2,#F4F6FA);color:var(--awb-color7,#252A3D);font-size:.86em;line-height:1.35;cursor:pointer;transition:border-color .12s ease,background .12s ease,color .12s ease}
.ppe-chip:hover{border-color:var(--awb-color4,#7A1FB8);background:var(--awb-color1,#FFFFFF)}
.ppe-chip.is-on{background:var(--awb-color4,#7A1FB8);border-color:var(--awb-color4,#7A1FB8);color:#fff}
.ppe-chip-n{font-size:.82em;font-variant-numeric:tabular-nums;color:var(--awb-color6,#5B6178)}
.ppe-chip.is-on .ppe-chip-n{color:rgba(255,255,255,.82)}
.ppe-chip:focus-visible{outline:2px solid var(--awb-color5,#1F6F8B);outline-offset:2px}
.ppe-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.ppe-search input,.ppe-sel select{padding:6px 10px;border:1px solid var(--awb-color3,#E3E8F0);border-radius:6px;background:var(--awb-color1,#FFFFFF);color:var(--awb-color7,#252A3D);font-size:.88em;line-height:1.4}
.ppe-search input{min-width:min(280px,100%)}
.ppe-count{margin:12px 0 0;color:var(--awb-color6,#5B6178);font-size:.86em;font-variant-numeric:tabular-nums}
.ppe-empty{margin:26px 0;color:var(--awb-color6,#5B6178)}
.ppe-row[hidden]{display:none}
@media(max-width:640px){
  /* Was a nowrap scroll strip, on the assumption it beat "three wrapped lines".
     With 13 series it is 2860px wide against a 352px viewport — eight screens of
     sideways dragging, with no cue that anything is off-screen. Wrapping is
     taller but scannable, and every option is reachable. */
  /* The select replaces the chips entirely below 640px. */
  .ppe-chips{display:none}
  .ppe-chips{flex-wrap:wrap;overflow-x:visible;gap:6px}
  .ppe-chip{flex:0 1 auto;max-width:100%;padding:5px 10px;font-size:.8em}
  .ppe-chip span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ppe-controls{gap:8px}
  .ppe-search{flex:1 1 100%}
  .ppe-search input{width:100%;min-width:0}
}
@media(prefers-reduced-motion:reduce){.ppe-chip{transition:none}}

/* Sortable column headers. Only meaningful where the row is a real grid, so
   they are hidden at the width where it collapses to two stacked lines. */
.ppe-head{display:grid;grid-template-columns:0 minmax(0,1fr) 6.4em;align-items:center;gap:10px;padding:0 12px;border-bottom:2px solid var(--awb-color3,#E3E8F0)}
body.logged-in .ppe-head{grid-template-columns:32px minmax(0,1fr) 6.4em}
.ppe-head-cols{display:grid;grid-template-columns:56px minmax(0,1fr) 5em 12em 6.8em 3.2em 2.6em;align-items:center;gap:14px;padding:0 8px 8px}
.ppe-sortcol{justify-self:start;padding:2px 0;border:0;background:none;color:var(--awb-color6,#5B6178);font-size:.76em;letter-spacing:.07em;text-transform:uppercase;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:5px}
.ppe-sortcol:hover{color:var(--awb-color4,#7A1FB8)}
.ppe-sortcol.is-sorted{color:var(--awb-color4,#7A1FB8)}
.ppe-sortcol.is-sorted::after{content:"▾";font-size:.9em;line-height:1}
.ppe-sortcol.is-sorted[aria-sort="ascending"]::after{content:"▴"}
.ppe-sortcol:focus-visible{outline:2px solid var(--awb-color5,#1F6F8B);outline-offset:2px}
@media(max-width:1000px){.ppe-head{display:none}}

/* Previous / next episode. Rendered late so it survives the paywall — someone
   who has hit the gate should still be able to move through the archive. */
.ppe-nav{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:36px 0 0;padding-top:24px;border-top:1px solid var(--awb-color3,#E3E8F0)}
.ppe-nav-slot{display:flex;flex-direction:column;gap:4px;padding:16px 18px;border:1px solid var(--awb-color3,#E3E8F0);border-radius:8px;text-decoration:none;transition:border-color .12s ease,background .12s ease}
a.ppe-nav-slot:hover{border-color:var(--awb-color4,#7A1FB8);background:var(--awb-color2,#F4F6FA)}
.ppe-nav-empty{border-style:dashed;opacity:.35}
.ppe-nav-dir{font-size:.72em;letter-spacing:.09em;text-transform:uppercase;font-weight:600;color:var(--awb-color6,#5B6178)}
.ppe-nav-title{color:var(--awb-color7,#252A3D);font-weight:600;line-height:1.35}
a.ppe-nav-slot:hover .ppe-nav-title{color:var(--awb-color4,#7A1FB8)}
.ppe-nav-se{font-size:.8em;font-variant-numeric:tabular-nums;color:var(--awb-color5,#1F6F8B)}
.ppe-nav-next{text-align:right}
.ppe-nav-next .ppe-nav-dir::after{content:" →"}
.ppe-nav-prev .ppe-nav-dir::before{content:"← "}
@media(max-width:560px){.ppe-nav{grid-template-columns:1fr}.ppe-nav-next{text-align:left}.ppe-nav-empty{display:none}}
@media(prefers-reduced-motion:reduce){.ppe-nav-slot{transition:none}}

/* Rumble has no oEmbed provider, so its iframe is built directly and needs the
   responsive sizing oEmbed would otherwise have applied. */
.ppe-video .ppe-rumble{display:block;width:100%;aspect-ratio:16/9;height:auto;border:0;border-radius:6px}

/* Series select is the phone-sized view of the chip row; each is hidden where
   the other is the better control. */
.ppe-sel-series{display:none}
@media(max-width:640px){
  .ppe-sel-series{display:inline-flex;flex:1 1 100%}
  .ppe-sel-series select{width:100%}
}

/* Episode headline: artwork beside the notes, under the title and post meta. */
.ppe-headline{display:flex;gap:18px;align-items:flex-start;margin:0 0 22px}
.ppe-headline-art{flex:0 0 auto;width:150px;height:150px;object-fit:cover;border-radius:8px}
.ppe-headline .ppe-notes{margin:0;min-width:0}
@media(max-width:560px){
  /* Side by side leaves the notes about 20 characters wide on a phone. */
  .ppe-headline{flex-direction:column;gap:12px}
  .ppe-headline-art{width:120px;height:120px}
}

/* Clear filters — quiet until there is something to clear. */
.ppe-clear{padding:6px 12px;border:1px solid var(--awb-color3,#E3E8F0);border-radius:6px;background:var(--awb-color1,#fff);color:var(--awb-color6,#5B6178);font-size:.86em;cursor:pointer;transition:border-color .12s ease,color .12s ease}
.ppe-clear:hover{border-color:var(--awb-color4,#7A1FB8);color:var(--awb-color4,#7A1FB8)}
.ppe-clear[hidden]{display:none}

/* Download sits under the player as a secondary action, not a second CTA. */
.ppe-dl{margin:6px 0 0}
.ppe-dl-link{display:inline-flex;align-items:center;gap:6px;color:var(--awb-color6,#5B6178);text-decoration:none;font-size:.88em}
.ppe-dl-link:hover{color:var(--awb-color4,#7A1FB8)}
.ppe-dl-link svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
