#panel-listen .code-chatgpt-bridge[hidden]{display:none!important}
/* Royal Codes · responsive living narration */
#panel-listen .listen-layout{align-items:start}
#panel-listen .listening-card{
 display:grid;grid-template-columns:minmax(0,1fr) 116px;
 grid-template-areas:"top top" "title art" "follow follow" "scrub scrub" "transport transport" "actions actions" "bridge bridge" "audio audio";
 align-content:start;gap:15px 16px;
}
#panel-listen .listening-topline{grid-area:top;min-width:0}
#panel-listen .album-wrap{grid-area:art;display:grid;place-items:center;padding:0!important;min-width:0}
#panel-listen .album-art{width:100%;max-width:112px;aspect-ratio:1;border-radius:15px;box-shadow:0 6px 20px rgba(0,0,0,0.058)}
#panel-listen .album-mark{font-size:.52rem}
#panel-listen .album-star{font-size:1.15rem}
#panel-listen .orbital{transform:scale(.5)}
#panel-listen .song-title{grid-area:title;min-width:0;align-self:center}
#panel-listen .song-title h2{font-size:clamp(1.35rem,2.2vw,1.8rem);line-height:1.22;overflow-wrap:break-word}
#panel-listen .audio-scrub{grid-area:scrub;margin-top:0}
#panel-listen .transport{grid-area:transport;margin:2px 0}
#panel-listen .player-actions{grid-area:actions}
#panel-listen .code-chatgpt-bridge{grid-area:bridge}
#panel-listen #audioEl{grid-area:audio;display:none}
#panel-listen .live-follow-card[hidden]{display:none!important}
#panel-listen .live-follow-card{
 grid-area:follow;min-width:0;position:relative;overflow:hidden;
 border:1px solid rgba(0,0,0,0.200);border-radius:17px;
 background:radial-gradient(ellipse at 0% 0%,rgba(0,0,0,0.018),transparent 70%),linear-gradient(155deg,#fdfdfd,#fdfdfd);
 box-shadow:0 8px 27px rgba(0,0,0,0.054);padding:clamp(16px,2vw,24px);
}
#panel-listen .live-follow-head,#panel-listen .live-follow-foot{
 display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap
}
#panel-listen .live-follow-head{
 font-size:.61rem;line-height:1.5;letter-spacing:.11em;font-weight:750;color:#202020
}
#panel-listen .live-follow-head span:last-child{
 text-transform:none;letter-spacing:0;font-size:.64rem;color:#202020;font-weight:500
}
#panel-listen .live-follow-dot{
 display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;
 background:#fdfdfd;box-shadow:0 0 10px rgba(0,0,0,0.130);vertical-align:middle
}
#panel-listen .live-follow-chapter{
 font-size:.68rem;line-height:1.6;letter-spacing:.025em;color:#202020;margin:15px 0 8px;
 white-space:normal;overflow-wrap:anywhere
}
#panel-listen .live-follow-sentence{
 margin:0;min-height:2.8em;
 font-family:Georgia,'IM Fell French Canon',serif;
 font-size:clamp(1.13rem,1.85vw,1.38rem);font-weight:400;
 line-height:1.8;color:#202020;
 text-wrap:pretty;overflow-wrap:break-word
}
#panel-listen .live-follow-previous{
 margin:10px 0 0;font:400 .78rem/1.55 Georgia,serif;color:#202020;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
#panel-listen .live-follow-foot{
 border-top:1px solid rgba(0,0,0,0.150);margin-top:17px;padding-top:10px
}
#panel-listen .live-follow-foot>span{
 color:#202020;font-size:.67rem;line-height:1.5;flex:1;min-width:130px
}
#panel-listen .live-follow-foot button{
 border:0;background:none;color:#202020;padding:8px 0 8px 12px;
 text-decoration:underline;text-decoration-color:#aaa;text-underline-offset:3px;
 font-weight:700;font-size:.73rem;line-height:1.5;cursor:pointer
}
#panel-listen .follow-word{
 border-radius:4px;box-decoration-break:clone;-webkit-box-decoration-break:clone;
 transition:background-color .12s ease,color .12s ease;
 cursor:pointer;
}
#panel-listen .follow-word:hover{box-shadow:0 0 0 1px rgba(0,0,0,0.130)}
#panel-listen .follow-word:focus-visible{outline:2px solid #333;outline-offset:2px}
#panel-listen .live-follow-sentence .follow-word.is-current-word,
#panel-listen .transcript-panel .follow-word.is-current-word{
 background:#f3e0a1;color:#191919;box-shadow:0 0 0 2px rgba(0,0,0,0.061);
 font-weight:700
}
#panel-listen .listen-aside{
 position:sticky;top:20px;align-self:start;
 border:1px solid rgba(0,0,0,0.192);background:linear-gradient(155deg,rgba(255,255,255,0.93),rgba(255,255,255,0.93));
 border-radius:18px;padding:clamp(16px,2vw,26px);min-width:0;
}
#panel-listen .listen-aside .aside-title{gap:14px;flex-wrap:wrap}
#panel-listen .listen-aside .aside-title h3{margin:5px 0 12px;font-size:1.45rem}
#panel-listen .follow-resume{
 border-radius:999px;border:1px solid rgba(0,0,0,0.440);
 background:rgba(0,0,0,0.014);color:#202020;
 font-size:.73rem;font-weight:650;padding:9px 12px;cursor:pointer
}
#panel-listen .follow-resume[hidden]{display:none!important}
#panel-listen .transcript-panel{
 position:relative;scroll-behavior:smooth;
 min-height:220px;max-height:min(64vh,610px);
 padding:15px 10px 15px 0;scrollbar-width:thin;overscroll-behavior:contain;
 border-top:1px solid rgba(0,0,0,0.160);border-bottom:1px solid rgba(0,0,0,0.160)
}
#panel-listen .audiobook-narration-kicker{font-size:.66rem!important}
#panel-listen .transcript-panel .follow-script-title{
 margin:10px 0 17px;font:400 1.35rem/1.3 Georgia,serif;color:#202020
}
#panel-listen .transcript-panel .follow-sentence{
 margin:0 0 .5em!important;padding:10px 13px;border-left:2px solid transparent;
 border-radius:2px 10px 10px 2px;
 font-family:Georgia,'IM Fell French Canon',serif!important;
 font-size:1rem!important;line-height:1.78!important;
 color:#202020!important;transition:background-color .15s ease;
 overflow-wrap:break-word;
}
#panel-listen .transcript-panel .follow-sentence.is-current-sentence{
 background:rgba(0,0,0,0.045);border-left-color:#555;color:#202020!important
}
#panel-listen .transcript-panel .follow-sentence:not(.is-current-sentence){opacity:.78}
#panel-listen .transcript-panel .follow-sentence.is-current-sentence .follow-word:not(.is-current-word){color:#191919}
#panel-listen .transcript-panel .follow-sentence .follow-word{scroll-margin:90px}
#panel-listen .audiobook-script-controls{margin:4px 0 14px}
#panel-listen .audiobook-script-controls p{color:#202020}
#panel-listen .listen-aside .aside-footer{margin-top:15px}
@media(max-width:1050px){
 #panel-listen .listen-layout{grid-template-columns:1fr;gap:12px}
 #panel-listen .listen-aside{position:static;top:auto;padding:18px}
 #panel-listen .transcript-panel{max-height:280px;min-height:150px}
}
@media(max-width:720px){
 #panel-listen .listening-card{
   grid-template-columns:minmax(0,1fr) 68px;
   gap:11px 10px;padding:15px;border-radius:17px
 }
 #panel-listen .album-art{width:68px;height:68px;border-radius:10px}
 #panel-listen .album-wrap{align-self:center}
 #panel-listen .album-mark{font-size:.4rem;letter-spacing:0;line-height:1.1}
 #panel-listen .album-star{font-size:.8rem}
 #panel-listen .song-title h2{font-size:1.22rem}
 #panel-listen .song-title p{font-size:.6rem}
 #panel-listen .live-follow-card{padding:16px;border-radius:13px}
 #panel-listen .live-follow-sentence{font-size:1.18rem;line-height:1.7;min-height:2.5em}
 #panel-listen .live-follow-chapter{margin-top:10px}
 #panel-listen .live-follow-head{font-size:.56rem}
 #panel-listen .live-follow-head span:last-child{font-size:.61rem}
 #panel-listen .live-follow-previous{display:none}
 #panel-listen .live-follow-foot{margin-top:11px}
 #panel-listen .listen-aside{margin-top:0;padding:13px;border-radius:14px}
 #panel-listen .transcript-panel{max-height:225px}
 #panel-listen .listen-aside .aside-title h3{font-size:1.26rem}
 #panel-listen .aside-footer{display:none}
}
@media(prefers-reduced-motion:reduce){
 #panel-listen .transcript-panel{scroll-behavior:auto}
 #panel-listen .follow-word{transition:none}
}

/* One synchronized transcript beside the player. The chapter selector is above it. */
#panel-listen .listen-chapter-position{width:100%;max-width:950px;margin:0 0 14px}
#panel-listen .listen-chapter-position .audiobook-script-controls{
  margin:0;padding:17px clamp(15px,2.6vw,24px);
  border:1px solid rgba(0,0,0,0.264);border-radius:16px;
  background:radial-gradient(ellipse at 100% 0%,rgba(0,0,0,0.021),transparent 65%),linear-gradient(120deg,#fdfdfd,#fdfdfd);
  box-shadow:inset 0 1px 0 rgba(0,0,0,0.020);
}
#panel-listen .listen-chapter-intro{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}
#panel-listen .listen-chapter-intro .overline{margin:0 0 4px;font-size:.58rem;letter-spacing:.16em;color:#555}
#panel-listen .listen-chapter-intro h3{margin:0;font:400 clamp(1.04rem,1.9vw,1.4rem)/1.32 Georgia,serif;color:#202020}
#panel-listen .listen-chapter-meta{font-size:.65rem;letter-spacing:.045em;color:#202020;white-space:nowrap}
#panel-listen .listen-chapter-position .chapter-picker-trigger{min-height:64px;background:linear-gradient(120deg,rgba(255,255,255,0.93),rgba(255,255,255,0.93));border-color:rgba(0,0,0,0.360)}
#panel-listen .listen-chapter-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:12px}
#panel-listen .listen-chapter-bottom p{margin:0;flex:1;min-width:0;font-size:.69rem;color:#202020;line-height:1.55}
#panel-listen .listen-readalong-switch{display:inline-flex;align-items:center;gap:8px;cursor:pointer;color:#202020;font-size:.71rem;font-weight:600;white-space:nowrap}
#panel-listen .listen-readalong-switch input{margin:0;width:19px;height:19px;accent-color:#303030;cursor:pointer}
#panel-listen .listen-layout{display:block;max-width:950px}
#panel-listen .listening-card{width:100%;box-sizing:border-box}
#panel-listen .listen-aside{display:none!important}
#panel-listen .live-follow-foot>span{min-width:0}
@media(max-width:720px){
  #panel-listen .listen-chapter-position{margin:0 0 12px}
  #panel-listen .listen-chapter-position .audiobook-script-controls{padding:15px 13px;border-radius:13px}
  #panel-listen .listen-chapter-intro{gap:8px}
  #panel-listen .listen-chapter-intro h3{font-size:1.12rem}
  #panel-listen .listen-chapter-meta{font-size:.57rem}
  #panel-listen .listen-chapter-bottom{flex-wrap:wrap;gap:9px}
  #panel-listen .listen-readalong-switch{margin-left:auto;font-size:.68rem}
}
@media(max-width:360px){#panel-listen .listen-chapter-meta{display:none}}
