body{background:#f7f7f9;color:#19181c}
#app .lr-site-app{--brand:#29232e;--brand-soft:#efebf4;--accent:#6c4db8;--player-control-selected:#6743b0;--player-control-tint:#f1ebfa;--player-control-ink:#211e25}
#app .lr-site-sidebar{background:#121117;color:#f5f3f6;border-color:#27252b}
#app .lr-site-sidebar :is(.brand,.brand-name,.nav-btn,.nav-label,.membership-entry,#account,.lr-downloads-trigger,.lr-sidebar-toggle){color:#f3f0f4}
#app .lr-site-sidebar .nav-btn.active{background:#39343e;color:#fff}
#app .lr-site-sidebar .account-popover{color:#28232a}
#app .lr-site-sidebar .site-brand{font-family:Georgia,serif;font-weight:700}
#app .site-header{background:#faf9faf2;border-bottom:1px solid #e4e1e6}
#app .site-header-tagline a{font-size:16px;font-weight:650;letter-spacing:.035em;color:#242127;text-decoration:none}
#app .content :is(.page-heading h1,.profile-title,.reader-title){color:#211f25;letter-spacing:-.035em}
#app :is(.lr-member-page,.lr-auth-panel){--brand:#19171d;--brand-soft:#f4f1f7}
#app :is(.studio-player,.reader-root){--accent:#7153aa;--primary:#302a3b}
#app :is(a,button,input):focus-visible{outline:3px solid #9974d9;outline-offset:3px}
#app .lr-profile-heading,#app .rd-heading:has(.lr-library-count){border:0;border-radius:24px;background:radial-gradient(ellipse at 80% 0%,#40384e,transparent 65%),#141217;padding:clamp(24px,5vw,68px);color:#faf8fb}
#app :is(.lr-profile-heading,.rd-heading:has(.lr-library-count)) :is(h1,.lr-eyebrow,.rd-subtitle,.lr-library-count){color:#f6f2f7}
#app :is(.lr-profile-heading,.rd-heading:has(.lr-library-count)) h1{font-size:clamp(30px,5vw,58px);line-height:1.15}
#app .lr-profile-identity{background:#f7f6f8;color:#242027;border-radius:14px;padding:8px 12px}
#notice:has(.auth-content) .auth-content .auth-submit.primary{background:#201e23;border-color:#201e23;border-radius:100px}
#app .reader-root{--reader-accent:#7053ab;--reader-paper:#fffeff}
#app .reader-root .reader-paper h1{font-family:Georgia,"Songti SC",serif;letter-spacing:-.025em}
#app .studio-player .pf-play{background:#201d25;color:white}
#app .lr-site-sidebar .site-tools>button{background:#302d36;color:#fafafa}

/* 2026-11-28: the old light-sidebar backgrounds made these two controls
   white-on-white once the sidebar went dark. */
#app .lr-site-sidebar #toolbar>.membership-entry{background:linear-gradient(135deg,#2c2633 0%,#262236 100%);color:#f1dfb6;border:1px solid #4a3f5a}
#app .lr-site-sidebar #toolbar>.membership-entry:hover{background:linear-gradient(135deg,#352d3e 0%,#2e2942 100%);color:#fbe9c2}
#app .lr-site-sidebar .lr-sidebar-top>.lr-sidebar-toggle{background:#24222a;color:#f3f0f4;border:1px solid #3a3740;box-shadow:none}
#app .lr-site-sidebar .lr-sidebar-top>.lr-sidebar-toggle:hover{background:#322f38;color:#fff}

/* ===== 2026-11-28 学习页「夜间听力室」 =====
   The study page continues the homepage night sky. The sentence being heard is
   the only lit thing; everything else steps back. Teaching opens as a light
   sheet so long Chinese explanations stay easy to read. Styling only. */
#app .player-root.studio-player{
  --room-night:#0B0A10;--room-dock:#15141C;--room-rule:rgba(255,255,255,.08);
  --room-lit:#F5F5F7;--room-dim:#8C8996;--room-quiet:#5F5C69;--room-violet:#8E73FF;--room-violet-soft:rgba(142,115,255,.16);
  --pf-canvas:var(--room-night);--pf-ink:var(--room-lit);--pf-secondary:#C9C6D2;--pf-muted:var(--room-dim);
  --pf-line:var(--room-rule);--pf-line-soft:rgba(255,255,255,.05);--pf-hover:rgba(255,255,255,.05);
  --pf-pressed:var(--room-violet-soft);--pf-accent:var(--room-violet);--pf-accent-dark:#A592FF;--pf-active-word:#C9BCFF;
  --player-control-ink:#B9B6C3;--player-control-selected:#C9BCFF;--player-control-tint:var(--room-violet-soft);
  color:var(--room-lit)
}
body:has(#app .studio-player),#app .main:has(.studio-player),#app .main:has(.studio-player) #content{background:#0B0A10}
#app .lr-site-app:has(.studio-player) .lr-mobile-bar{background:#0B0A10;border-color:rgba(255,255,255,.08);color:#F5F5F7}
#app .lr-site-app:has(.studio-player) .lr-mobile-bar :is(.brand-name,.lr-sidebar-toggle){color:#F5F5F7}

/* episode heading: no card, sits on the night */
#app .player-root.studio-player .player-header{background:transparent;border:0;box-shadow:none;padding:6px 2px 4px}
#app .player-root.studio-player .player-back-btn{background:transparent;color:var(--room-lit);border:1px solid rgba(255,255,255,.16)}
#app .player-root.studio-player .player-back-btn:hover{background:rgba(255,255,255,.06)}
#app .player-root.studio-player .reference-cover{background:#1B1A22;border-radius:12px;box-shadow:0 0 0 1px rgba(255,255,255,.08)}
#app .player-root.studio-player .reference-cover img{border-radius:12px}
#app .player-root.studio-player .player-title{color:var(--room-lit);font-size:21px;line-height:1.3;font-weight:650;letter-spacing:-.01em}
#app .player-root.studio-player .pf-eyebrow,#app .player-root.studio-player .pf-eyebrow :is(.pf-series-name,.pf-sub-duration,.pf-meta-dot){color:var(--room-dim)}
#app .player-root.studio-player .lr-level-pill{background:transparent;color:#E8D9B0;box-shadow:inset 0 0 0 1px rgba(232,217,176,.45)}
#app .player-root.studio-player .pf-page-kind{background:transparent;color:var(--room-dim);border:1px solid var(--room-rule)}

/* transcript: the room itself */
#app .player-root.studio-player .player-right{background:transparent;box-shadow:none;border:0}
#app .player-root.studio-player .pf-list-head{background:transparent;border-bottom:0;color:var(--room-quiet)}
#app .player-root.studio-player .pf-list-hint{color:var(--room-quiet)}
#app .player-root.studio-player .pf-list-scroll{scrollbar-color:#2C2A34 transparent}
#app .player-root.studio-player .pf-cue{background:transparent;border-color:transparent;box-shadow:none}
#app .player-root.studio-player .pf-cue:hover{background:rgba(255,255,255,.035);border-color:transparent}
#app .player-root.studio-player .pf-cue-text{color:var(--room-dim);transition:color .25s ease}
#app .player-root.studio-player .pf-cue.is-active,#app .player-root.studio-player .pf-cue.is-immersive-current{background:rgba(255,255,255,.04);border-color:transparent;box-shadow:none}
#app .player-root.studio-player .pf-cue.is-active .pf-cue-text,#app .player-root.studio-player .pf-cue.is-immersive-current .pf-cue-text{color:var(--room-lit)}
#app .player-root.studio-player .pf-cue::before{background:var(--room-violet)}
#app .player-root.studio-player .pf-cue-time{color:var(--room-quiet);background:transparent}
#app .player-root.studio-player .pf-cue.is-active .pf-cue-time{color:var(--room-violet);background:transparent}
#app .player-root.studio-player .pf-cue-translation{color:#7D7A87}
#app .player-root.studio-player .pf-cue.is-active .pf-cue-translation{color:#C9C6D2}
#app .player-root.studio-player[data-subtitles="chinese"] .pf-cue-translation{color:var(--room-dim)}
#app .player-root.studio-player[data-subtitles="chinese"] .pf-cue.is-active .pf-cue-translation{color:var(--room-lit)}
#app .player-root.studio-player .pf-word.is-word-active,#app .player-root.studio-player .pf-cue-text .is-word-active{color:#fff;background:rgba(142,115,255,.32);box-shadow:none}
#app .player-root.studio-player .pf-cue-action{color:var(--room-quiet)}
#app .player-root.studio-player .pf-cue.is-active .pf-cue-action,#app .player-root.studio-player .pf-cue:hover .pf-cue-action{color:#B9B6C3}
#app .player-root.studio-player .pf-cue-action:hover{color:var(--room-lit);background:rgba(255,255,255,.07)}

/* playback dock */
#app .player-root.studio-player .pf-playback-footer{background:var(--room-dock);border:1px solid var(--room-rule);border-radius:20px;box-shadow:none}
#app .player-root.studio-player .studio-learning-tools{border-top-color:var(--room-rule)}
#app .player-root.studio-player :is(.pf-current,.pf-duration){color:var(--room-dim)}
#app .player-root.studio-player .pf-seek{background:linear-gradient(to right,var(--room-violet) 0 var(--pf-progress,0%),rgba(255,255,255,.14) var(--pf-progress,0%) 100%) center / 100% 4px no-repeat}
#app .player-root.studio-player .pf-seek::-webkit-slider-thumb{background:var(--room-lit);border-color:var(--room-lit);box-shadow:0 0 0 4px rgba(142,115,255,.25)}
#app .player-root.studio-player .pf-seek::-moz-range-thumb{background:var(--room-lit);border-color:var(--room-lit)}
#app .lr-site-app .player-root.studio-player .studio-transport .pf-play,#app .studio-player .pf-play{background:var(--room-lit);color:#0B0A10;border-radius:50%;box-shadow:0 0 0 6px rgba(255,255,255,.06)}
#app .lr-site-app .player-root.studio-player .studio-transport .pf-play:hover{background:#fff;color:#0B0A10}
#app .player-root.studio-player .pf-control-caption{color:var(--room-dim)}
#app .player-root.studio-player .player-secondary-toolbar button{color:#B9B6C3}
#app .player-root.studio-player .player-secondary-toolbar button:is(.is-on,[aria-pressed="true"]){color:var(--player-control-selected);background:var(--player-control-tint)}

/* teaching column: quiet until it has something to say */
#app .player-root.studio-player .player-body>.pf-expl-box{background:var(--room-dock);border:1px solid var(--room-rule);box-shadow:none}
#app .player-root.studio-player .pf-expl-header{background:transparent;border-bottom-color:var(--room-rule)}
#app .player-root.studio-player .pf-expl-header :is(.pf-expl-title,.pf-expl-close){color:var(--room-lit)}
#app .player-root.studio-player .pf-expl-empty{background:transparent;border:0;box-shadow:none;color:var(--room-dim)}
#app .player-root.studio-player .pf-expl-empty :is(h3,h4,strong,b){color:var(--room-lit)}
#app .player-root.studio-player .pf-empty-mark{background:rgba(255,255,255,.06);color:var(--room-violet);box-shadow:none}
#app .player-root.studio-player .pf-expl-empty small{background:transparent;border-color:rgba(142,115,255,.5);color:#C9BCFF}
#app .player-root.studio-player.has-explanation .player-body>.pf-expl-box{
  --pf-ink:#16161A;--pf-secondary:#3E3D46;--pf-muted:#6B6B73;--pf-line:rgba(0,0,0,.08);--pf-line-soft:rgba(0,0,0,.05);
  --pf-hover:#ECECF0;--pf-pressed:#ECE8FF;--pf-accent:#5E40E4;--pf-accent-dark:#4A2FD0;
  background:#F5F5F7;color:#16161A;border-color:transparent
}
#app .player-root.studio-player.has-explanation .pf-expl-header{background:#FBFBFD;border-bottom-color:rgba(0,0,0,.08)}
#app .player-root.studio-player.has-explanation .pf-expl-header :is(.pf-expl-title,.pf-expl-close){color:#16161A}

/* sentence actions sit under the line instead of eating its width */
#app .lr-site-app .player-root.studio-player .pf-cue{padding-right:16px}
#app .player-root.studio-player .pf-cue-meta{position:absolute;right:10px;top:8px;margin:0;padding:2px;border-radius:12px;background:#1B1A22;opacity:0;pointer-events:none;transition:opacity .2s ease}
#app .player-root.studio-player :is(.pf-cue:hover,.pf-cue:focus-within) .pf-cue-meta{opacity:1;pointer-events:auto}
#app .player-root.studio-player :is(.pf-cue.is-active,.pf-cue.is-explained) .pf-cue-meta{position:static;grid-column:2;justify-self:start;margin:6px 0 0 -10px;padding:0;background:transparent;opacity:1;pointer-events:auto}
#app .player-root.studio-player:not(.has-explanation) .player-body>.pf-expl-box{align-self:start}
body:has(.studio-player) .sentence-chat-dock .sentence-chat-dock-open{background:#1B1A22;color:#C9BCFF;border:1px solid rgba(255,255,255,.14);box-shadow:none}
body:has(.studio-player) .sentence-chat-dock .sentence-chat-dock-open:hover{background:#26242F}
#app .lr-site-app .player-root.studio-player .pf-playback-options{grid-template-columns:repeat(7,minmax(0,1fr))}
@media(max-width:1180px){#app .player-root.studio-player:not(.is-immersive) .player-body{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:920px){#app .player-root.studio-player:not(.is-immersive) .player-body{grid-template-columns:minmax(0,1fr)}}
@media(hover:none){#app .player-root.studio-player .pf-cue:not(.is-active):not(.is-explained) .pf-cue-meta{display:none}}

/* phone: give the screen to the sentences */
@media(max-width:760px){
  #app .player-root.studio-player .player-header{grid-template-columns:44px 44px minmax(0,1fr);grid-template-rows:auto;gap:10px;padding:2px 0 0}
  #app .player-root.studio-player .player-header>.player-back-btn{grid-column:1;grid-row:1}
  #app .player-root.studio-player .player-header>.reference-cover{grid-column:2;grid-row:1}
  #app .player-root.studio-player .player-header>.player-heading{grid-column:3;grid-row:1;min-width:0}
  #app .player-root.studio-player .player-back-btn{width:44px;min-width:44px;padding:0;justify-content:center;border-color:transparent}
  #app .player-root.studio-player .player-back-btn span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  #app .player-root.studio-player .reference-cover{width:44px;height:44px}
  #app .player-root.studio-player .reference-cover img{width:44px;height:44px}
  #app .player-root.studio-player .player-title{font-size:16px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  #app .player-root.studio-player .pf-head-actions{display:none}
  #app .player-root.studio-player:not(.is-immersive) .player-right{height:calc(100dvh - 150px);min-height:440px}
  #app .player-root.studio-player .pf-list-head{padding:4px 6px}
  #app .player-root.studio-player .pf-cue-text{font-size:19px}
  #app .player-root.studio-player .pf-playback-footer{padding:10px 8px 8px;border-radius:18px}
  #app .lr-site-app .player-root.studio-player .pf-playback-options{grid-template-columns:repeat(7,minmax(0,1fr));gap:0}
  #app .player-root.studio-player .studio-learning-tools{margin-top:6px;padding-top:6px}
  #app .player-root.studio-player .player-secondary-toolbar{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:6px;overflow-x:auto;scrollbar-width:none;-webkit-mask:linear-gradient(90deg,#000 88%,transparent)}
  #app .player-root.studio-player .player-secondary-toolbar::-webkit-scrollbar{display:none}
  #app .player-root.studio-player .player-secondary-toolbar button{flex:none;width:auto;padding:0 12px}
}
@media(prefers-reduced-motion:reduce){#app .player-root.studio-player .pf-cue-text{transition:none}}

/* ===== 2026-11-30 侧栏整理 =====
   One quiet dark rail. Brand on top, the five places in the middle, and the
   utilities (下载 / 会员 / 账号) as one group of equal rows at the bottom.
   Only the current place is lit; nothing else is a filled block. */
#app .lr-site-app .lr-site-sidebar{--rail-ink:#EDEAF2;--rail-dim:#A29EAD;--rail-hover:rgba(255,255,255,.05);--rail-on:rgba(255,255,255,.08);--rail-rule:rgba(255,255,255,.07);
  padding:20px 12px 16px;background:#121117;border-right:1px solid var(--rail-rule)}
/* brand row: mark + name; the collapse button stays inside the rail instead of hanging over the page edge */
#app .lr-site-app .lr-site-sidebar .lr-sidebar-top{min-height:40px;padding:0 4px 0 6px}
#app .lr-site-app .lr-site-sidebar .site-brand{gap:10px;font-family:inherit}
#app .lr-site-app .lr-site-sidebar .brand-glyph{width:30px;height:30px;border-radius:9px}
#app .lr-site-app .lr-site-sidebar .brand-name{font-size:17px;font-weight:650;letter-spacing:-.2px;color:var(--rail-ink)}
@media(min-width:761px){
  #app .lr-site-app[data-sidebar='expanded'] .lr-sidebar-top>.lr-sidebar-toggle{position:static;right:auto;width:32px;height:32px;min-width:32px;min-height:32px;padding:6px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--rail-dim)}
}
#app .lr-site-app .lr-site-sidebar .lr-sidebar-top>.lr-sidebar-toggle{border:0;background:transparent;box-shadow:none;color:var(--rail-dim)}
#app .lr-site-app .lr-site-sidebar .lr-sidebar-top>.lr-sidebar-toggle:hover{background:var(--rail-hover);color:var(--rail-ink)}
#app .lr-site-app .lr-site-sidebar .lr-sidebar-toggle .icon{width:18px;height:18px}

/* the five places */
#app .lr-site-app .lr-site-sidebar .site-primary-nav{gap:2px;margin:28px 0 0}
#app .lr-site-app .lr-site-sidebar .site-primary-nav .nav-btn{position:relative;min-height:42px;padding:10px 12px;gap:12px!important;border-radius:10px;background:transparent;box-shadow:none;color:var(--rail-dim);font-size:14px;font-weight:500}
#app .lr-site-app .lr-site-sidebar .site-primary-nav .nav-btn .icon{width:19px;height:19px}
#app .lr-site-app .lr-site-sidebar .site-primary-nav .nav-btn:hover{background:var(--rail-hover);color:var(--rail-ink)}
#app .lr-site-app .lr-site-sidebar .site-primary-nav .nav-btn.active{background:var(--rail-on);color:#fff;font-weight:600;box-shadow:none}
#app .lr-site-app .lr-site-sidebar .site-primary-nav .nav-btn.active .icon{color:#B8A6FF}

/* utilities: four equal rows, no filled blocks */
#app .lr-site-app .lr-sidebar-bottom{gap:2px;padding-top:12px;margin-top:12px;border-top:1px solid var(--rail-rule)}
#app .lr-site-app .lr-site-sidebar :is(.lr-downloads-trigger,#toolbar>button){display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:40px;height:auto;padding:9px 12px;border:0!important;border-radius:10px;background:transparent!important;box-shadow:none;color:var(--rail-dim);font-family:inherit;font-size:13.5px;font-weight:500;line-height:1.3;text-decoration:none}
#app .lr-site-app .lr-site-sidebar :is(.lr-downloads-trigger,#toolbar>button):hover{background:var(--rail-hover)!important;color:var(--rail-ink)}
#app .lr-site-app .lr-site-sidebar .lr-downloads-trigger :is(.icon,svg){width:18px;height:18px;flex:none}
#app .lr-site-app .lr-site-sidebar #toolbar>button::before{width:18px;height:18px;-webkit-mask-size:18px 18px;mask-size:18px 18px}
#app .lr-site-app .lr-site-sidebar #toolbar>.membership-entry{color:#E9D6A6}
#app .lr-site-app .lr-site-sidebar #toolbar>.membership-entry:hover{color:#F6E6BE}
/* signed-out: the account row is the one call to action, but a quiet outlined one */
#app .lr-site-app .lr-site-sidebar #toolbar>#account{margin-top:6px;color:var(--rail-ink);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
#app .lr-site-app .lr-site-sidebar #toolbar>#account:hover{box-shadow:inset 0 0 0 1px rgba(255,255,255,.24)}

/* collapsed rail: everything is a centred 44px icon */
#app .lr-site-app[data-sidebar='collapsed'] .lr-site-sidebar{padding:20px 0 16px;align-items:center}
#app .lr-site-app[data-sidebar='collapsed'] .lr-site-sidebar .lr-sidebar-top{padding:0;gap:10px}
#app .lr-site-app[data-sidebar='collapsed'] .lr-site-sidebar :is(.site-primary-nav,.lr-sidebar-bottom){width:46px;align-items:center}
#app .lr-site-app[data-sidebar='collapsed'] .lr-site-sidebar :is(.site-primary-nav .nav-btn,.lr-downloads-trigger,#toolbar>button){justify-content:center;width:44px;min-width:44px;height:44px;padding:0;gap:0!important}
#app .lr-site-app[data-sidebar='collapsed'] .lr-site-sidebar .lr-downloads-trigger-label{display:none}
#app .lr-site-app[data-sidebar='collapsed'] .lr-site-sidebar #toolbar>#account{margin-top:4px}

/* The logo is the one way back to the public site; it is a link, not a route button. */
#app .lr-site-app a.site-brand{text-decoration:none;color:inherit;border-radius:10px}
#app .lr-site-app .lr-site-sidebar a.site-brand:hover .brand-name{color:#fff}
#app .lr-site-app .lr-site-sidebar a.site-brand:hover .brand-glyph{filter:brightness(1.12)}
/* with the duplicate wordmark gone, search keeps its place on the right */
#app .lr-site-app .site-search-row{justify-content:flex-end}
/* collapsed rail: the member / account rows carry their label as text, so hide it again (the row rule above set a size) */
#app .lr-site-app[data-sidebar='collapsed'] .lr-site-sidebar #toolbar>:is(.membership-entry,#account){font-size:0;overflow:hidden}
