/* Simply Sport Science – podcast panel
   A stacked panel in the right-hand space of the page header: one row per presentation, same width, row height and position on every page.
   The title line turns into the player while something plays. Needs the site's colour variables (--cyan, --border, --grey-light, --amber-light, --violet-light). */

.has-podcast .topic-hero-inner,.has-podcast .lesson-hero-inner{display:flow-root;position:relative;}

.pc-panel{
  float:right; width:320px; margin:0 0 14px 40px; position:relative; z-index:3;
  border:1px solid #4A3A8C; border-radius:14px; overflow:visible;
  background:linear-gradient(135deg,#1E1458,#2A1A66); box-shadow:0 10px 30px rgba(0,0,0,.35);
  font-family:'Segoe UI',system-ui,sans-serif; color:#fff; text-align:left;
}
.pc-panel *{box-sizing:border-box;}

/* title line = player */
.pc-head{position:relative; height:42px; display:flex; align-items:center; gap:9px; padding:0 12px; border-bottom:1px solid rgba(255,255,255,.12); background:rgba(10,7,25,.30); border-radius:13px 13px 0 0;}
.pc-mark{width:26px; height:26px; border-radius:50%; flex:none; display:grid; place-items:center; background:radial-gradient(circle at 30% 22%,rgba(255,255,255,.28) 0%,rgba(255,255,255,0) 46%),linear-gradient(145deg,#8A4DFF 0%,#D7309F 100%); box-shadow:0 3px 10px rgba(215,48,159,.4),inset 0 1px 0 rgba(255,255,255,.35);}
.pc-mark svg{width:62%; height:62%; display:block;}
.pc-htxt{font-size:11.5px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--amber-light,#F5C866); white-space:nowrap;}
.pc-count{margin-left:auto; font-size:11.5px; font-weight:700; color:var(--grey-light,#D4D0EA); white-space:nowrap;}
.pc-live{display:none; margin-left:auto; align-items:center; gap:5px; min-width:0;}
.pc-panel.is-started .pc-count{display:none;}
.pc-panel.is-started .pc-live{display:flex;}
.pc-panel.is-started .pc-htxt{letter-spacing:.02em; text-transform:none; font-size:12.5px; color:#fff;}
.pc-time{font-size:11.5px; font-weight:700; color:var(--grey-light,#D4D0EA); white-space:nowrap; margin-right:2px; font-variant-numeric:tabular-nums;}
.pc-mini{font:inherit; font-size:11px; font-weight:800; line-height:1; color:var(--grey-light,#D4D0EA); background:rgba(255,255,255,.10); border:1px solid var(--border,#33275F); border-radius:7px; padding:5px 6px; cursor:pointer;}
.pc-mini:hover{background:rgba(255,255,255,.2); color:#fff;}
.pc-panel.is-unavailable .pc-htxt{color:var(--grey-light,#D4D0EA);}

/* seek line sits on the bottom edge of the title line, only while an episode has started */
.pc-seek{-webkit-appearance:none; appearance:none; margin:0; padding:0; background:transparent; cursor:pointer; display:none; --pc-f:0%;}
.pc-panel.is-started .pc-head .pc-seek{display:block; position:absolute; left:0; right:0; bottom:-7px; width:100%; height:14px; z-index:2;}
.pc-seek::-webkit-slider-runnable-track{height:4px; border-radius:4px; background:linear-gradient(90deg,#F5C866 0,#22D3EE var(--pc-f),rgba(255,255,255,.22) var(--pc-f));}
.pc-seek::-moz-range-track{height:4px; border-radius:4px; background:rgba(255,255,255,.22);}
.pc-seek::-moz-range-progress{height:4px; border-radius:4px; background:linear-gradient(90deg,#F5C866,#22D3EE);}
.pc-seek::-webkit-slider-thumb{-webkit-appearance:none; width:12px; height:12px; margin-top:-4px; border-radius:50%; background:var(--amber-light,#F5C866); border:0; box-shadow:0 0 0 3px rgba(245,200,102,.25);}
.pc-seek::-moz-range-thumb{width:12px; height:12px; border-radius:50%; background:var(--amber-light,#F5C866); border:0;}
.pc-seek:focus-visible{outline:2px solid var(--cyan,#22D3EE); outline-offset:2px;}

/* rows: every row is the same height */
.pc-row{position:relative; height:50px; display:flex; align-items:center; gap:10px; padding:0 10px 0 16px; border-bottom:1px solid rgba(255,255,255,.09);}
.pc-row:last-of-type{border-bottom:0; border-radius:0 0 13px 13px;}
.pc-row.is-on{background:rgba(138,77,255,.24);}
.pc-row.is-on::before{content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:linear-gradient(180deg,#F5C866,#F07CC4);}
.pc-tx{flex:1; min-width:0; display:flex; flex-direction:column; gap:2px;}
.pc-cd{font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--violet-light,#B38BFF); line-height:1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.pc-nm{font-size:13px; font-weight:700; color:#fff; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.pc-btns{display:flex; gap:5px; flex:none;}

/* squares: play (yellow) or numbered episode */
.pc-sq{width:32px; height:32px; border-radius:9px; border:0; padding:0; display:grid; place-items:center; cursor:pointer; font:inherit; font-size:12.5px; font-weight:900; color:#1A0F5C; background:linear-gradient(135deg,#FFE08A,#F5B840); -webkit-tap-highlight-color:transparent; transition:transform .15s ease;}
.pc-sq:hover{transform:scale(1.07);}
.pc-sq:active{transform:scale(.95);}
.pc-sq:focus-visible,.pc-mini:focus-visible{outline:2px solid var(--cyan,#22D3EE); outline-offset:2px;}
.pc-sq svg{width:14px; height:14px; display:block;}
.pc-sq .pc-i-pause{display:none;}
.pc-row.is-playing .pc-p .pc-i-pause,.pc-fixed.is-playing .pc-p .pc-i-pause{display:block;}
.pc-row.is-playing .pc-p .pc-i-play,.pc-fixed.is-playing .pc-p .pc-i-play{display:none;}
.pc-sq.pc-n{width:28px; height:28px; border-radius:8px; font-size:12px; color:var(--grey-light,#D4D0EA); background:rgba(255,255,255,.10); border:1px solid var(--border,#33275F);}
.pc-sq.pc-n.is-on{background:linear-gradient(135deg,#8A4DFF,#D7309F); border-color:transparent; color:#fff;}
.pc-panel.is-unavailable .pc-row.is-on .pc-sq.is-on{filter:grayscale(.8) opacity(.6);}

/* bottom bar: only while playing and the panel is scrolled out of view */
.pc-fixed{display:none; position:fixed; left:50%; bottom:14px; transform:translateX(-50%); z-index:60; width:min(560px,calc(100% - 24px)); align-items:center; gap:10px; padding:10px 12px 14px; border:1px solid #5A48A8; border-radius:16px; background:rgba(20,14,50,.97); box-shadow:0 12px 36px rgba(0,0,0,.55); font-family:'Segoe UI',system-ui,sans-serif; color:#fff;}
.pc-fixed.is-shown{display:flex; animation:pcRise .25s ease;}
@keyframes pcRise{from{opacity:0; transform:translate(-50%,10px);}to{opacity:1; transform:translate(-50%,0);}}
.pc-ftx{flex:1; min-width:0; display:flex; flex-direction:column; gap:1px;}
.pc-fnm{font-size:13px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.pc-ftm{font-size:11.5px; font-weight:700; color:var(--grey-light,#D4D0EA); font-variant-numeric:tabular-nums;}
.pc-fixed .pc-fseek{display:block; position:absolute; left:12px; right:12px; bottom:2px; width:auto; height:14px;}

@media (max-width:640px){
  /* phones: the panel sits under the header text at full width; rows stay the same height */
  .pc-panel{float:none; width:100%; margin:20px 0 0;}
  .pc-row{padding-left:14px;}
  .pc-time{display:none;}
}
@media (prefers-reduced-motion:reduce){
  .pc-sq{transition:none;} .pc-fixed.is-shown{animation:none;}
}
