/* Previously — podcasts library gallery + popup redesign (2026-09-26).
   - Gallery: true wide grid on desktop, 2-up on phone. Every card shows the REAL
     show key art UNCROPPED: square frame, object-fit:contain, never cover/never cut.
     A branded fallback plate (monogram) sits behind the img and shows if art fails.
   - Popup (#podModal): cinematic art band, serif title, concise teaser with …more/…less,
     graphite Play-latest + ghost YouTube actions, rich episode rows with honest
     relative-time labels, close X overlaid on the band.
   Brand: Deep Charcoal #101114 · Warm Bone #EDE6D6 · Rewind Red #E8321E (accents only,
   never buttons) · Action Graphite #2B2B30 (primary CTAs). No emerald anywhere.
   Scoped to #view-podcasts / #podModal / .pod-card — no global resets. */

/* ================= GALLERY GRID ================= */
#view-podcasts .pod-grid{
  display:grid;gap:34px 26px;grid-template-columns:repeat(2,minmax(0,1fr));
  margin:26px 0 10px;
}
@media(min-width:700px){ #view-podcasts .pod-grid{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media(min-width:1024px){ #view-podcasts .pod-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:40px 30px} }
@media(min-width:1280px){ #view-podcasts .pod-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:44px 32px} }

/* ================= CARD ================= */
#view-podcasts .pod-card{
  display:block;width:100%;background:none;border:0;padding:0;text-align:left;
  color:var(--ink,#EDE6D6);cursor:pointer;
}
#view-podcasts .pod-card .pod-art{
  position:relative;display:block;aspect-ratio:1/1;border-radius:12px;overflow:hidden;
  border:1px solid rgba(237,230,214,.13);background:#16171b;
  box-shadow:0 2px 14px rgba(0,0,0,.35);
  transition:transform .22s ease,box-shadow .22s ease;
}
#view-podcasts .pod-card:hover .pod-art,
#view-podcasts .pod-card:focus-visible .pod-art{
  transform:translateY(-4px);box-shadow:0 14px 34px rgba(0,0,0,.5);
}
#view-podcasts .pod-card:focus-visible{outline:none}
#view-podcasts .pod-card:focus-visible .pod-art{outline:2px solid #EDE6D6;outline-offset:3px}
/* branded fallback plate: always rendered, img covers it when art loads */
#view-podcasts .pod-plate{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#1d1e24,#101114);
  font-size:clamp(44px,9vw,84px);
}
#view-podcasts .pod-plate .pod-mono{
  font-family:'Didot','Bodoni MT','Playfair Display',Georgia,serif;color:#EDE6D6;opacity:.92;
  text-shadow:0 2px 18px rgba(0,0,0,.45);line-height:1;
}
#view-podcasts .pod-plate .pod-rule{
  position:absolute;left:50%;bottom:16%;transform:translateX(-50%);
  width:34px;height:3px;background:#E8321E;border-radius:2px;
}
#view-podcasts .pod-plate .pod-sheen{
  position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.10),transparent 42%);
  pointer-events:none;
}
/* THE rule: real key art, whole, uncropped — contain, never cover */
#view-podcasts .pod-img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;
  background:#101114;
}
#view-podcasts .pod-hoverplay{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:rgba(10,10,12,.42);opacity:0;transition:opacity .2s;pointer-events:none;
}
#view-podcasts .pod-card:hover .pod-hoverplay,
#view-podcasts .pod-card:focus-visible .pod-hoverplay{opacity:1}
#view-podcasts .pod-hoverplay span{
  width:58px;height:58px;border-radius:50%;background:#2B2B30;display:flex;
  align-items:center;justify-content:center;box-shadow:0 6px 20px rgba(0,0,0,.5);
  border:1px solid rgba(237,230,214,.2);
}
/* info affordance → the premium detail sheet (popup keeps existing for details) */
#view-podcasts .pod-info{
  position:absolute;top:10px;right:10px;z-index:2;width:34px;height:34px;border-radius:50%;
  background:rgba(10,10,12,.66);border:1px solid rgba(237,230,214,.28);color:#EDE6D6;
  font-size:15px;font-style:italic;font-family:Georgia,serif;line-height:1;
  display:grid;place-items:center;opacity:0;transition:opacity .18s;
}
#view-podcasts .pod-card:hover .pod-info,
#view-podcasts .pod-card:focus-visible .pod-info,
#view-podcasts .pod-info:focus-visible{opacity:1}
@media(hover:none){ #view-podcasts .pod-info{opacity:1} }
#view-podcasts .pod-info:hover{background:#2B2B30}
#view-podcasts .pod-meta{padding:12px 2px 0}
#view-podcasts .pod-name{
  display:block;font-size:14.5px;font-weight:600;letter-spacing:.01em;line-height:1.35;color:#EDE6D6;
}
#view-podcasts .pod-sub{
  display:block;font-size:12px;color:rgba(237,230,214,.40);margin-top:4px;letter-spacing:.02em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
/* companion cards share the gallery language */
#view-podcasts .pod-card.pod-comp .pod-art{border-style:dashed}

/* ================= POPUP REDESIGN v2 (#podModal) =================
   Rebuilt 2026-09-27 from the video-fix mockup (podcast-popup-redesign-2026-09-26):
   cinematic art band with the big unmistakable play button; tap-artwork-plays-video
   on phone AND desktop (James's standing rule); bottom sheet on phones, centered
   modal on desktop. Brand: Deep Charcoal #101114, Warm Bone #EDE6D6, Rewind Red
   #E8321E as accent/status only (never a button fill), Action graphite #2B2B30
   primary buttons. NO Emerald anywhere. Scoped to #podModal — no global resets. */
#podModal .modal-card{
  background:linear-gradient(180deg,#17181d,#101114);
  border:1px solid rgba(237,230,214,.16);
  width:min(620px,100%);overflow:hidden;border-radius:26px;
}
#podModal .modal-body{padding:0}
/* close X rides on the art band — production .modal-close wiring untouched */
#podModal .modal-close{
  width:38px;height:38px;font-size:17px;z-index:6;
  background:rgba(16,17,20,.62);border:1px solid rgba(237,230,214,.28);color:#F4F1EA;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  transition:transform .18s ease,background .18s ease,border-color .18s ease;
}
#podModal .modal-close:hover{background:rgba(16,17,20,.9);border-color:rgba(237,230,214,.5);transform:scale(1.06)}
#podModal .modal-close:active{transform:scale(.94)}
/* --- cinematic art band: the visual center of the popup --- */
#podModal .pp2-artband{
  position:relative;aspect-ratio:16/7.2;min-height:172px;overflow:hidden;cursor:pointer;
  background:
    radial-gradient(120% 90% at 18% 10%, rgba(232,50,30,.20), transparent 52%),
    radial-gradient(100% 100% at 85% 90%, rgba(237,230,214,.06), transparent 50%),
    linear-gradient(150deg,#26272e 0%,#17181d 55%,#101114 100%);
  display:flex;align-items:center;justify-content:center;
}
#podModal .pp2-artband.pp2-noplay{cursor:default}
#podModal .pp2-artband::after{ /* cinematic scrim into the sheet */
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(16,17,20,.05) 40%,rgba(16,17,20,.55) 78%,#141519 100%);
}
#podModal .pp2-mono{position:relative;z-index:1;text-align:center;padding:0 24px}
#podModal .pp2-big{
  font-family:Georgia,'Times New Roman',serif;font-size:clamp(56px,16vw,96px);line-height:1;
  color:#EDE6D6;letter-spacing:.04em;text-shadow:0 6px 30px rgba(0,0,0,.5);
}
#podModal .pp2-big i{font-style:normal;color:#E8321E}
#podModal .pp2-rule{width:54px;height:3px;background:#E8321E;margin:12px auto 10px;border-radius:2px}
#podModal .pp2-sub{font-size:10px;letter-spacing:.42em;color:rgba(237,230,214,.62);text-transform:uppercase}
#podModal .pp2-grain{
  position:absolute;inset:0;z-index:2;opacity:.5;pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:5px 5px;
}
/* the big unmistakable play button — visual center of the popup */
#podModal .pp2-bigplay{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;
  width:92px;height:92px;border-radius:50%;border:none;cursor:pointer;
  background:rgba(237,230,214,.96);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 14px 44px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.2);
  transition:transform .18s ease;
}
#podModal .pp2-bigplay:hover{transform:translate(-50%,-50%) scale(1.05)}
#podModal .pp2-bigplay:active{transform:translate(-50%,-50%) scale(.93)}
#podModal .pp2-tri{
  width:0;height:0;margin-left:6px;
  border-left:27px solid #101114;border-top:17px solid transparent;border-bottom:17px solid transparent;
}
#podModal .pp2-bigplay::before{
  content:"";position:absolute;inset:-10px;border-radius:50%;
  border:2px solid rgba(237,230,214,.4);animation:pp2-ring 2.2s ease-out infinite;pointer-events:none;
}
@keyframes pp2-ring{0%{transform:scale(.8);opacity:1}100%{transform:scale(1.14);opacity:0}}
#podModal .pp2-artband.playing .pp2-bigplay{display:none}
#podModal .pp2-videotag{
  position:absolute;left:16px;top:14px;z-index:4;
  display:flex;align-items:center;gap:7px;
  font-size:10.5px;font-weight:800;letter-spacing:.2em;color:#fff;
  background:rgba(16,17,20,.7);border:1px solid rgba(237,230,214,.28);
  padding:7px 13px;border-radius:999px;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
}
#podModal .pp2-vdot{width:7px;height:7px;border-radius:50%;background:#E8321E}
/* --- body --- */
#podModal .pp2-body{padding:0 22px 26px;position:relative;z-index:2;margin-top:-34px}
/* James 2026-09-27 (#8): Case File Cinema elevation — featured band inside
   the in-place podcast overlay for True Crime shows. Dark dossier language
   from the approved Story Board direction: bone on charcoal, red accent dot,
   letterspaced small caps. Label only, never a button. */
#podModal .pp2-cinema-band{
  display:flex;align-items:center;gap:10px;
  margin:0 -22px 14px;padding:11px 22px;
  background:
    radial-gradient(110% 46% at 50% -8%, rgba(237,230,214,.07), transparent 62%),
    linear-gradient(160deg,#1B1C20 0%,#0B0C0E 70%);
  border-top:1px solid rgba(237,230,214,.08);
  border-bottom:1px solid rgba(237,230,214,.08);
  font-size:10.5px;font-weight:700;letter-spacing:.32em;text-transform:uppercase;
  color:#EDE6D6;
}
#podModal .pp2-cinema-dot{
  width:8px;height:8px;border-radius:50%;background:#E8321E;flex:none;
  box-shadow:0 0 10px rgba(232,50,30,.8);
}
#podModal .pp2-cinema-sub{
  margin-left:auto;font-size:9px;font-weight:400;letter-spacing:.22em;
  color:rgba(237,230,214,.45);
}
#podModal .pp2-kicker{
  display:flex;align-items:center;gap:8px;margin-bottom:10px;
  font-size:10.5px;letter-spacing:.24em;text-transform:uppercase;color:#F2493A; /* a11y 2026-09-27: was #E8321E (4.41:1) */font-weight:700;
}
#podModal .pp2-dot{width:5px;height:5px;border-radius:50%;background:#E8321E;flex:none}
#podModal .pp2-followers{color:rgba(237,230,214,.38);letter-spacing:.14em;font-weight:600}
#podModal .pp2-title{
  font-family:Georgia,'Times New Roman',serif;font-weight:400;color:#EDE6D6;
  font-size:clamp(30px,8.4vw,42px);line-height:1.06;letter-spacing:.005em;margin:0 0 8px;
}
#podModal .pp2-hosts{font-size:13.5px;color:rgba(237,230,214,.62);margin:0 0 12px}
#podModal .pp2-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
#podModal .pp2-chip{
  font-size:11px;letter-spacing:.06em;color:rgba(237,230,214,.62);
  border:1px solid rgba(237,230,214,.14);border-radius:999px;padding:6px 12px;
  background:rgba(237,230,214,.04);
}
#podModal .pp2-actions{display:flex;gap:10px;margin-bottom:6px}
#podModal .pp2-playbtn{
  flex:1;display:flex;align-items:center;justify-content:center;gap:9px;
  border-radius:999px;padding:15px 18px;font-size:14.5px;font-weight:700;letter-spacing:.01em;
  cursor:pointer;border:1px solid transparent;background:#2B2B30;color:#fff;
  box-shadow:0 10px 26px rgba(0,0,0,.45);
  transition:transform .15s ease,box-shadow .2s ease,background .2s ease;
}
#podModal .pp2-playbtn:active{transform:scale(.97)}
#podModal .pp2-playbtn:hover{background:#36363d}
#podModal .pp2-eq{display:none;align-items:flex-end;gap:2.5px;height:14px}
#podModal .pp2-playbtn.playing .pp2-eq{display:flex}
#podModal .pp2-playbtn.playing .pp2-playic{display:none}
#podModal .pp2-eq span{width:3px;background:#fff;border-radius:2px;animation:pp2-eq 1s ease-in-out infinite}
#podModal .pp2-eq span:nth-child(2){animation-delay:.22s}
#podModal .pp2-eq span:nth-child(3){animation-delay:.44s}
@keyframes pp2-eq{0%,100%{height:5px}50%{height:14px}}
#podModal .pp2-tube{
  flex:1;display:flex;align-items:center;justify-content:center;gap:9px;
  border-radius:999px;padding:15px 18px;font-size:14.5px;font-weight:700;text-decoration:none;
  background:transparent;color:#EDE6D6;border:1px solid rgba(237,230,214,.32);
  transition:border-color .18s ease,background .18s ease;
}
#podModal .pp2-tube:hover{border-color:rgba(237,230,214,.6);background:rgba(237,230,214,.05)}
#podModal .pp2-fineprint{text-align:center;font-size:11px;color:rgba(237,230,214,.38);margin:10px 0 20px;letter-spacing:.03em}
/* teaser (v1 markup kept for the delegation: .pp-teaser/.pp-thead/.pp-trest/.pp-more) */
#podModal .pp-teaser{font-size:14px;line-height:1.65;color:rgba(237,230,214,.62);margin:0 0 18px}
/* CSP-safe teaser state: …more expands hide the head span via class, never style writes */
#podModal .pp-thead-hide{display:none!important}
#podModal .pp-more{
  background:none;border:none;color:#EDE6D6;font-size:13px;font-weight:700;cursor:pointer;
  padding:2px 0;letter-spacing:.02em;white-space:nowrap;
}
#podModal .pp-more:hover{text-decoration:underline}
#podModal .pp2-div{height:1px;background:rgba(237,230,214,.14);margin:0 0 18px;position:relative}
#podModal .pp2-div::before{
  content:"";position:absolute;left:0;top:-1.5px;width:44px;height:4px;border-radius:2px;background:#E8321E;
}
/* episodes */
#podModal .pp2-epshead{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:12px}
#podModal .pp2-epshead h3{font-size:11.5px;letter-spacing:.26em;color:#EDE6D6;font-weight:700;margin:0}
#podModal .pp2-epshead span{font-size:11px;color:rgba(237,230,214,.38);font-style:italic}
#podModal .pp2-ep{
  display:flex;gap:13px;align-items:center;width:100%;text-align:left;
  background:rgba(237,230,214,.028);border:1px solid rgba(237,230,214,.14);border-radius:16px;
  padding:11px 12px;margin-bottom:10px;cursor:pointer;color:#F4F1EA;
  transition:border-color .18s ease,background .18s ease,transform .15s ease;
  position:relative;overflow:hidden;
}
#podModal .pp2-ep:hover{border-color:rgba(237,230,214,.32)}
#podModal .pp2-ep:active{transform:scale(.985)}
#podModal .pp2-epthumb{
  position:relative;flex:none;width:58px;height:58px;border-radius:11px;overflow:hidden;
  background:linear-gradient(150deg,#26272e,#141519);
  border:1px solid rgba(237,230,214,.14);
  display:flex;align-items:center;justify-content:center;
  font-family:Georgia,'Times New Roman',serif;font-size:19px;color:#EDE6D6;
}
#podModal .pp2-epthumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
#podModal .pp2-epmono{position:relative}
#podModal .pp2-vbadge{
  position:absolute;right:-4px;bottom:-4px;width:27px;height:27px;border-radius:50%;
  background:#EDE6D6;display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 14px rgba(0,0,0,.55);z-index:2;
}
#podModal .pp2-vbadge::after{
  content:"";width:0;height:0;margin-left:3px;
  border-left:9px solid #101114;border-top:6px solid transparent;border-bottom:6px solid transparent;
}
#podModal .pp2-epmeta{min-width:0;flex:1}
#podModal .pp2-nowtag{display:none;font-size:9.5px;letter-spacing:.2em;color:#F2493A; /* a11y 2026-09-27: was #E8321E (4.41:1) */font-weight:800;margin-bottom:3px}
#podModal .pp2-ep.playing .pp2-nowtag{display:block}
#podModal .pp2-ept{font-size:13.5px;font-weight:650;color:#F4F1EA;margin-bottom:4px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35}
#podModal .pp2-epd{display:block;font-size:11.5px;color:rgba(237,230,214,.38);letter-spacing:.03em}
#podModal .pp2-epgo{
  flex:none;width:34px;height:34px;border-radius:50%;
  border:1px solid rgba(237,230,214,.25);display:flex;align-items:center;justify-content:center;
  color:#EDE6D6;
}
#podModal .pp2-ep.playing{border-color:rgba(232,50,30,.55);background:rgba(232,50,30,.06)}
#podModal .pp2-ep.playing::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#E8321E;
}
#podModal .pp2-ep.playing .pp2-epgo{background:#E8321E;border-color:#E8321E;color:#fff}
/* phone: bottom sheet, like the mockup */
@media(max-width:600px){
  #podModal.modal{align-items:end;padding:8px 8px 0}
  #podModal .modal-card{border-radius:26px 26px 0 0;max-height:94svh}
  #podModal .pp2-body{padding:0 18px 24px}
  #podModal .pp2-epthumb{width:52px;height:52px}
}
@media(prefers-reduced-motion:reduce){
  #view-podcasts .pod-card .pod-art{transition:none}
  #podModal .pp2-eq span{animation:none}
  #podModal .pp2-bigplay::before{animation:none}
}

/* ---------- featured cards: same uncropped-art language + info affordance ---------- */
#view-podcasts .pod-feat-card{position:relative;cursor:pointer}
#view-podcasts .pod-feat-card .feat-tile{position:relative;overflow:hidden;background:#16171B}
#view-podcasts .pod-feat-card .feat-tile .pod-plate{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#16171B}
#view-podcasts .pod-feat-card .feat-tile .pod-plate .pod-mono{font-size:34px;color:#EDE6D6;opacity:.92;font-weight:800;letter-spacing:.08em}
#view-podcasts .pod-feat-card .feat-tile .pod-plate .pod-rule{width:56px;height:2px;background:#E8321E;opacity:.85}
#view-podcasts .pod-feat-card .feat-tile .pod-plate .pod-sheen{position:absolute;inset:0;background:linear-gradient(135deg,rgba(237,230,214,.07),transparent 55%);pointer-events:none}
#view-podcasts .pod-feat-card .feat-tile .pod-img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#16171B}
#view-podcasts .pod-feat-info{position:absolute;top:12px;right:12px;z-index:3;width:26px;height:26px;border-radius:50%;border:1px solid rgba(237,230,214,.5);background:rgba(16,17,20,.78);color:#EDE6D6;font:700 13px/1 ui-serif,Georgia,serif;font-style:italic;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;transition:opacity .15s}
#view-podcasts .pod-feat-card:hover .pod-feat-info,
#view-podcasts .pod-feat-card:focus-within .pod-feat-info{opacity:1}
@media (hover:none){#view-podcasts .pod-feat-info{opacity:1}}
