/* app-updates.css */
.lr-update-dialog{border:0;border-radius:26px;padding:0;width:min(420px,calc(100vw - 40px));max-height:calc(100dvh - 48px);overflow:auto;color:#252b3a;background:#fff;box-shadow:0 28px 100px #11182b33;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.lr-update-dialog::backdrop{background:#0f172a66}
.lr-update-card{padding:28px}.lr-update-mark{display:grid;place-items:center;width:60px;height:60px;border-radius:18px;background:#f0ecff;color:#7655d6}
.lr-update-card h2{font-size:23px;font-weight:600;margin:22px 0 8px;line-height:1.4}.lr-update-version,.lr-update-status{color:#7b8191;font-size:13px;line-height:1.6}
.lr-update-notes{font-size:15px;line-height:1.7;white-space:pre-wrap;color:#454d60;margin:18px 0}
.lr-update-card button{display:block;width:100%;min-height:48px;border:0;border-radius:14px;font:inherit;cursor:pointer}
.lr-update-primary{background:#7655d6;color:#fff;margin-top:24px}.lr-update-primary:hover{background:#6745c4}.lr-update-secondary{background:transparent;color:#626a7b;margin-top:6px}
.lr-update-card button:focus-visible{outline:3px solid #b5a4ea;outline-offset:3px}
@media(prefers-reduced-motion:no-preference){.lr-update-dialog[open]{animation:lr-update-enter .2s ease-out}@keyframes lr-update-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}

/* style.css */
/* ===== Reset & base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
  color: #1d1d1f;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-feature-settings: "cv11";
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

input {
  font: inherit;
  color: inherit;
}

svg {
  display: block;
  flex: none;
}

::selection {
  background: rgba(120, 62, 219, 0.18);
}

/* ===== App shell ===== */
#app {
  min-height: 100vh;
  display: flex;
  background: #ffffff;
}

/* ===== Sidebar ===== */
.sidebar {
  width: 230px;
  flex: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  background: #f5f5f7;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  gap: 22px;
  overflow-y: auto;
  z-index: 30;
  border-right: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}

.sidebar-brand svg {
  width: 22px;
  height: 22px;
  color: #783edb;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #424245;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  width: 100%;
}

.sidebar nav button svg {
  width: 17px;
  height: 17px;
  color: #6e6e73;
  transition: color 0.15s ease;
}

.sidebar nav button:hover {
  background: rgba(0, 0, 0, 0.045);
}

.sidebar nav button[aria-current="page"],
.sidebar nav button.is-active {
  background: rgba(120, 62, 219, 0.1);
  color: #783edb;
}

.sidebar nav button[aria-current="page"] svg,
.sidebar nav button.is-active svg {
  color: #783edb;
}

.sidebar nav button:focus-visible {
  outline: 2px solid #783edb;
  outline-offset: 1px;
}

/* ===== Main area ===== */
.main {
  flex: 1 1 auto;
  margin-left: 230px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ===== Top toolbar ===== */
#toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 36px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.search-wrap {
  flex: 1 1 auto;
  max-width: 340px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrap svg {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: #8e8e93;
  pointer-events: none;
}

#search {
  width: 100%;
  padding: 7px 12px 7px 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #f0f0f2;
  font-size: 0.85rem;
  outline: none;
  transition: background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

#search::placeholder {
  color: #8e8e93;
}

#search:focus {
  background: #fff;
  border-color: #783edb;
  box-shadow: 0 0 0 3px rgba(120, 62, 219, 0.15);
}

.toolbar-spacer {
  flex: 1 1 auto;
}

#connection {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: #8e8e93;
  white-space: nowrap;
}

#connection::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34c759;
  flex: none;
}

#connection.is-offline::before {
  background: #ff3b30;
}

#connection.is-loading::before {
  background: #ff9500;
}

#refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #6e6e73;
  transition: background 0.15s ease, color 0.15s ease;
}

#refresh svg {
  width: 16px;
  height: 16px;
}

#refresh:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
}

#refresh:focus-visible {
  outline: 2px solid #783edb;
  outline-offset: 1px;
}

#refresh.is-spinning svg {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Content ===== */
#content {
  flex: 1 1 auto;
  padding: 26px 36px 120px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

/* Discover title */
h1.page-title,
.discover-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  line-height: 1.15;
  color: #1d1d1f;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 34px 0 14px;
}

.section-head:first-child {
  margin-top: 0;
}

.section-head h2 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: #1d1d1f;
}

.section-head .muted {
  font-size: 0.8rem;
}

/* thin separators between sections */
.shelf + .shelf {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  padding-top: 4px;
  margin-top: 8px;
}

/* ===== Hero / editorial feature ===== */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
  margin-bottom: 8px;
}

.hero {
  display: grid;
  grid-template-columns: 148px 1fr;
  border-radius: 14px;
  overflow: hidden;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  min-height: 148px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

.hero:focus-visible {
  outline: 2px solid #783edb;
  outline-offset: 2px;
}

.hero-cover {
  position: relative;
  background: #e8e8ed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* tinted solid panel variant (no gradient) */
.hero.is-tinted .hero-cover {
  background: #e7defb;
}

.hero.is-tinted .hero-cover img {
  display: none;
}

.hero-cover .cover-fallback {
  font-size: 2.1rem;
  font-weight: 700;
  color: #783edb;
  opacity: 0.75;
  font-family: "PingFang SC", -apple-system, sans-serif;
}

.hero-copy {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hero-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #783edb;
}

.hero-copy h3 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
  color: #1d1d1f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-copy p,
.hero-copy .hero-desc {
  font-size: 0.82rem;
  color: #6e6e73;
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-copy .hero-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  color: #8e8e93;
}

/* ===== Podcast shelf (horizontal covers) ===== */
.shelf {
  margin-bottom: 6px;
}

.cards {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.cards::-webkit-scrollbar {
  height: 6px;
}

.cards::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.cards::-webkit-scrollbar-track {
  background: transparent;
}

/* card buttons rendered by ui.card() */
.cards > button,
.card {
  flex: 0 0 auto;
  width: 148px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-snap-align: start;
  text-align: left;
  transition: transform 0.2s ease;
}

.cards > button:hover,
.card:hover {
  transform: translateY(-2px);
}

.cards > button:focus-visible,
.card:focus-visible {
  outline: 2px solid #783edb;
  outline-offset: 3px;
  border-radius: 10px;
}

.card-cover,
.cards > button > img,
.card > img {
  width: 148px;
  height: 148px;
  border-radius: 10px;
  object-fit: cover;
  background: #f0f0f2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.6rem;
  color: #783edb;
  background: #e7defb;
  overflow: hidden;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.card-title,
.cards > button .card-title {
  font-size: 0.84rem;
  font-weight: 500;
  color: #1d1d1f;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-level,
.cards > button .card-level {
  font-size: 0.72rem;
  color: #8e8e93;
  font-weight: 500;
}

/* ===== Series / episode list (browse detail) ===== */
.series-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.series-head .level-badge,
.series-head .badge {
  font-size: 0.72rem;
}

.episode-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.episode-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  text-align: left;
  width: 100%;
  transition: background 0.12s ease;
  border-radius: 6px;
}

.episode-row:hover {
  background: #f5f5f7;
}

.episode-row:focus-visible {
  outline: 2px solid #783edb;
  outline-offset: -2px;
}

.episode-row .ep-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1d1d1f;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-row .ep-meta {
  font-size: 0.76rem;
  color: #8e8e93;
  white-space: nowrap;
}

.episode-row .ep-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #783edb;
  background: rgba(120, 62, 219, 0.1);
}

.episode-row .ep-play svg {
  width: 14px;
  height: 14px;
}

/* ===== Detail player layout ===== */
.player-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

.media-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: #f5f5f7;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.media-panel .media-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  background: #e7defb;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.media-panel .media-cover.cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: #783edb;
}

.media-panel h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.media-panel .media-sub {
  font-size: 0.82rem;
  color: #6e6e73;
  margin: 0;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px 0;
}

.control-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #1d1d1f;
  transition: background 0.15s ease, color 0.15s ease;
}

.control-row button svg {
  width: 20px;
  height: 20px;
}

.control-row button:hover {
  background: rgba(0, 0, 0, 0.06);
}

.control-row button:focus-visible {
  outline: 2px solid #783edb;
  outline-offset: 1px;
}

.control-row button.primary,
.control-row button[data-action="play"] {
  width: 54px;
  height: 54px;
  background: #783edb;
  color: #fff;
}

.control-row button.primary svg,
.control-row button[data-action="play"] svg {
  width: 22px;
  height: 22px;
}

.control-row button.primary:hover,
.control-row button[data-action="play"]:hover {
  background: #6a33c6;
}

/* volume + progress row */
.player-progress {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.player-progress .bar {
  height: 100%;
  background: #783edb;
  border-radius: 2px;
  transition: width 0.2s linear;
}

/* ===== Transcript panel ===== */
.transcript-panel {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  overflow: hidden;
  max-height: calc(100vh - 200px);
}

.transcript-panel .transcript-head {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 0.78rem;
  font-weight: 600;
  color: #6e6e73;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex: none;
}

.transcript-scroll {
  overflow-y: auto;
  padding: 8px 0;
  flex: 1 1 auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.transcript-scroll::-webkit-scrollbar {
  width: 6px;
}

.transcript-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.cue {
  display: block;
  width: 100%;
  padding: 9px 16px;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #424245;
  border-left: 2px solid transparent;
  transition: background 0.12s ease, color 0.12s ease,
    border-color 0.12s ease;
}

.cue .cue-time {
  font-size: 0.7rem;
  color: #8e8e93;
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}

.cue:hover {
  background: #f5f5f7;
}

.cue:focus-visible {
  outline: 2px solid #783edb;
  outline-offset: -2px;
}

.cue.is-current {
  background: rgba(120, 62, 219, 0.1);
  color: #1d1d1f;
  border-left-color: #783edb;
  font-weight: 500;
}

.cue.is-current .cue-time {
  color: #783edb;
}

/* ===== Explanation area ===== */
.explanation {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  padding: 14px 16px;
  background: #fafafa;
  flex: none;
  max-height: 40%;
  overflow-y: auto;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #424245;
}

.explanation h3,
.explanation .explanation-title {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #783edb;
  margin: 0 0 6px;
}

.explanation p {
  margin: 0 0 8px;
}

.explanation p:last-child {
  margin-bottom: 0;
}

.explanation .selected-sentence {
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 2px solid #783edb;
}

/* ===== Filters & chips ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #f0f0f2;
  color: #424245;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
  border: 1px solid transparent;
}

.chip:hover {
  background: #e8e8ed;
}

.chip:focus-visible {
  outline: 2px solid #783edb;
  outline-offset: 1px;
}

.chip.is-active,
.chip[aria-pressed="true"],
.chip[aria-selected="true"] {
  background: rgba(120, 62, 219, 0.12);
  color: #783edb;
  border-color: rgba(120, 62, 219, 0.25);
}

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(120, 62, 219, 0.1);
  color: #783edb;
  white-space: nowrap;
}

.badge.is-muted {
  background: rgba(0, 0, 0, 0.06);
  color: #6e6e73;
}

.badge.is-success {
  background: rgba(52, 199, 89, 0.12);
  color: #248a3d;
}

/* ===== Muted text ===== */
.muted {
  color: #8e8e93;
  font-size: 0.82rem;
}

/* ===== Empty & error states ===== */
.empty,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px;
  gap: 10px;
  color: #6e6e73;
  border-radius: 14px;
  background: #fafafa;
  border: 1px dashed rgba(0, 0, 0, 0.1);
}

.empty svg,
.error-state svg {
  width: 34px;
  height: 34px;
  color: #c7c7cc;
}

.empty h3,
.error-state h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1d1d1f;
}

.empty p,
.error-state p {
  margin: 0;
  font-size: 0.85rem;
  max-width: 320px;
  line-height: 1.5;
}

.error-state {
  background: #fff5f5;
  border-color: rgba(255, 59, 48, 0.25);
}

.error-state svg {
  color: #ff3b30;
}

.error-state button {
  margin-top: 4px;
  padding: 7px 16px;
  border-radius: 8px;
  background: #783edb;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.15s ease;
}

.error-state button:hover {
  background: #6a33c6;
}

.error-state button:focus-visible {
  outline: 2px solid #783edb;
  outline-offset: 2px;
}

/* ===== Mini player ===== */
#mini {
  position: fixed;
  left: 230px;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.05);
}

#mini[hidden] {
  display: none;
}

.mini-cover {
  width: 42px;
  height: 42px;
  border-radius: 7px;
  object-fit: cover;
  background: #e7defb;
  flex: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.mini-cover.cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #783edb;
}

.mini-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  gap: 2px;
}

.mini-title {
  font-size: 0.84rem;
  font-weight: 500;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-sub {
  font-size: 0.72rem;
  color: #8e8e93;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.mini-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #1d1d1f;
  transition: background 0.15s ease, color 0.15s ease;
}

.mini-controls button svg {
  width: 16px;
  height: 16px;
}

.mini-controls button:hover {
  background: rgba(0, 0, 0, 0.06);
}

.mini-controls button:focus-visible {
  outline: 2px solid #783edb;
  outline-offset: 1px;
}

.mini-controls button.primary,
.mini-controls button[data-action="play"] {
  background: #783edb;
  color: #fff;
}

.mini-controls button.primary:hover,
.mini-controls button[data-action="play"]:hover {
  background: #6a33c6;
}

.mini-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: rgba(0, 0, 0, 0.08);
}

.mini-progress .bar {
  height: 100%;
  background: #783edb;
  border-radius: 2px;
  transition: width 0.2s linear;
}

/* ===== Modal / notice dialog ===== */
#notice,
dialog#notice {
  border: 0;
  border-radius: 14px;
  padding: 22px 24px;
  max-width: 400px;
  width: calc(100% - 32px);
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  color: #1d1d1f;
}

dialog#notice::backdrop {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

#notice h2,
#notice .notice-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 6px;
}

#notice p {
  margin: 0 0 16px;
  font-size: 0.86rem;
  color: #424245;
  line-height: 1.5;
}

#notice form {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

#notice button {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  transition: background 0.15s ease;
}

#notice button[type="submit"],
#notice button.primary {
  background: #783edb;
  color: #fff;
}

#notice button[type="submit"]:hover,
#notice button.primary:hover {
  background: #6a33c6;
}

#notice button:focus-visible {
  outline: 2px solid #783edb;
  outline-offset: 2px;
}

#notice form {
  align-items: center;
}

/* close icon inside notice */
#notice .notice-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8e8e93;
}

#notice .notice-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
}

#notice .notice-close svg {
  width: 15px;
  height: 15px;
}

/* ===== Utility / misc ===== */
.hidden,
[hidden] {
  display: none !important;
}

.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-scroll-x {
  overflow-x: auto;
}

/* ===== Responsive (mobile at 700px) ===== */
@media (max-width: 700px) {
  html {
    font-size: 14.5px;
  }

  .sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 10px 14px;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .sidebar-brand {
    padding: 0 6px 0 0;
    font-size: 0.95rem;
    flex: none;
  }

  .sidebar-brand svg {
    width: 18px;
    height: 18px;
  }

  .sidebar nav {
    flex-direction: row;
    gap: 0;
    flex: 1 1 auto;
  }

  .sidebar nav button {
    padding: 6px 10px;
    font-size: 0.82rem;
    width: auto;
    flex: none;
  }

  .sidebar nav button svg {
    width: 15px;
    height: 15px;
  }

  .main {
    margin-left: 0;
  }

  #app {
    flex-direction: column;
  }

  #toolbar {
    padding: 9px 16px;
    gap: 8px;
  }

  .search-wrap {
    max-width: none;
  }

  #connection {
    display: none;
  }

  #content {
    padding: 18px 16px 130px;
  }

  h1.page-title,
  .discover-title {
    font-size: 1.55rem;
    margin-bottom: 16px;
  }

  .section-head {
    margin: 24px 0 10px;
  }

  .section-head h2 {
    font-size: 1rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero {
    grid-template-columns: 100px 1fr;
    min-height: 100px;
    border-radius: 12px;
  }

  .hero-copy {
    padding: 11px 13px;
    gap: 4px;
  }

  .hero-copy h3 {
    font-size: 0.92rem;
  }

  .hero-copy p,
  .hero-copy .hero-desc {
    font-size: 0.76rem;
    -webkit-line-clamp: 1;
  }

  .hero-cover .cover-fallback {
    font-size: 1.5rem;
  }

  .cards {
    gap: 12px;
    margin: 0 -16px;
    padding: 2px 16px 10px;
    scroll-padding-left: 16px;
  }

  .cards > button,
  .card {
    width: 118px;
  }

  .card-cover,
  .cards > button > img,
  .card > img {
    width: 118px;
    height: 118px;
    border-radius: 9px;
  }

  .card-title,
  .cards > button .card-title {
    font-size: 0.78rem;
  }

  .player-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .media-panel {
    padding: 16px;
  }

  .media-panel .media-cover {
    border-radius: 10px;
  }

  .transcript-panel {
    max-height: 60vh;
  }

  .explanation {
    max-height: none;
  }

  .episode-row {
    padding: 12px 2px;
    gap: 10px;
  }

  .episode-row .ep-title {
    font-size: 0.86rem;
  }

  .episode-row .ep-meta {
    font-size: 0.72rem;
  }

  #mini {
    left: 0;
    padding: 9px 14px;
    gap: 10px;
  }

  .mini-cover {
    width: 38px;
    height: 38px;
  }

  .mini-controls button {
    width: 30px;
    height: 30px;
  }

  .control-row {
    gap: 12px;
  }

  .control-row button {
    width: 38px;
    height: 38px;
  }

  .control-row button.primary,
  .control-row button[data-action="play"] {
    width: 50px;
    height: 50px;
  }

  .empty,
  .error-state {
    padding: 40px 18px;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero:hover,
  .cards > button:hover,
  .card:hover {
    transform: none;
  }

  #refresh.is-spinning svg {
    animation: none;
  }
}

/* ===== High contrast / focus visibility ===== */
@media (forced-colors: active) {
  .hero,
  .card,
  .episode-row,
  .cue,
  .chip,
  .transcript-panel,
  .media-panel {
    border: 1px solid CanvasText;
  }
}/* Integration polish: shared browsing, series and study surfaces. */
:root{--purple:#783edb;--ink:#242329;--muted:#86838d;--line:#eae8ed}button,input,select{font-family:inherit}button:focus-visible,a:focus-visible{outline:3px solid #bda0ee;outline-offset:4px}svg{flex:none}.app{min-height:100vh}.brand{display:flex;align-items:center;gap:10px;margin:5px 0 28px}.brand-mark{display:grid;place-items:center;background:var(--purple);color:white;width:34px;height:34px;border-radius:10px}.brand-mark svg{width:23px;height:23px}.brand-name{font-size:21px;font-weight:720;letter-spacing:-.7px}.sidebar .search-wrap{margin-bottom:25px;width:100%}.sidebar .search-icon{display:flex}.sidebar #search{font-size:12px}.nav-btn{gap:12px!important;min-height:42px}.sidebar nav button.active{background:#e9e0f5;color:var(--purple)}.sidebar:after{content:var(--lr-copy-slogan,'听见更大的世界');position:absolute;bottom:30px;left:27px;font-size:12px;color:#a3a0a9}#toolbar{justify-content:flex-end;height:62px;padding:12px 36px}#connection{margin-right:auto}#refresh{display:grid;place-items:center;height:32px;width:32px;border-radius:50%}#refresh:hover{background:#f3f0f7}.account-button{padding:7px 21px;background:#f0e9fa;border-radius:7px;color:var(--purple);font-size:12px;font-weight:600}#content{padding:30px 40px 60px;max-width:1600px;width:100%;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:22px;gap:18px}.page-heading h1{font-size:34px;letter-spacing:-1px;margin:0;font-weight:730}.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:650;line-height:1.8;color:#8a7e9b;margin:0 0 5px}.muted{color:var(--muted);font-size:12px;font-weight:400}.page-heading>.muted{padding-bottom:5px}.filters{display:flex;align-items:center;gap:6px;margin:0 0 26px;flex-wrap:wrap}.filters .chip{font-size:12px;padding:6px 13px;border:0;border-radius:6px;background:#f5f4f7;min-height:30px}.filters .selected{background:#eee5fb;color:var(--purple);font-weight:600}.filters select{margin-left:auto;background:white;border:1px solid var(--line);border-radius:6px;color:#6b6575;font-size:12px;padding:6px 10px;max-width:150px}.hero-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:35px}.hero{grid-template-columns:minmax(0,1fr) 42%;min-height:248px;border:0;border-radius:12px;background:#eee9df;padding:23px;gap:12px;align-items:center}.hero-1{background:#e6eaf0}.hero-copy{padding:0;min-width:0;align-self:stretch;display:flex;flex-direction:column;align-items:flex-start}.hero-copy .eyebrow{font-size:10px;letter-spacing:.8px;color:#766b57}.hero-copy h2{font-size:25px;font-weight:680;letter-spacing:-.8px;line-height:1.16;margin:16px 0 10px;overflow-wrap:anywhere}.hero-copy p{font-size:12px;color:#696660;margin:0}.hero-link{margin-top:auto;display:flex;gap:10px;align-items:center;font-size:12px;font-weight:600;color:#4b4140;padding-top:16px}.hero-link svg{width:15px;height:15px}.cover{position:relative;display:block;overflow:hidden;flex:none;background:#ece6f3}.cover-img{width:100%;height:100%;object-fit:cover;position:relative;z-index:1}.cover-letter{position:absolute;inset:0;display:grid;place-items:center;color:#9876b8;font-size:40px;font-weight:650;z-index:0}.cover-fallback{position:absolute;inset:0;display:grid;place-items:center;background:#eee6f6;font-size:32px;color:#9876b8}.hero-cover{width:100%;height:auto;aspect-ratio:1;border-radius:7px;box-shadow:0 8px 20px #30253419;background:#ded9cf}.hero-cover img{position:relative}.shelf{margin-bottom:32px}.section-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px;gap:10px}.section-head h2{margin:0;font-size:21px;font-weight:680;letter-spacing:-.5px}.cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:23px;overflow:visible;max-width:none;scroll-padding:0}.cards>.card{width:100%;gap:11px;align-self:start;min-width:0}.card-cover{width:100%;height:auto;aspect-ratio:1;border-radius:8px}.card-body{display:flex;flex-direction:column;gap:3px;max-width:100%}.card-title{font-size:13px;font-weight:550;line-height:1.38}.card-level,.card-meta{font-size:11px;color:#8d8795}.card-meta{display:none}.back-link{display:flex;align-items:center;gap:8px;color:var(--purple);font-size:12px;padding:0;margin-bottom:28px}.back-link svg{width:16px}.series-head{gap:30px;align-items:center;padding-bottom:32px;margin-bottom:28px;border-bottom:1px solid var(--line)}.series-art{width:210px;height:210px;border-radius:12px}.series-head h1{font-size:32px;line-height:1.22;letter-spacing:-.8px;margin:9px 0 12px}.series-description{max-width:570px;font-size:13px;line-height:1.9;color:#7c7684;margin:14px 0 20px}.primary{background:var(--purple);color:white;padding:10px 20px;border-radius:7px;display:inline-flex;gap:8px;align-items:center;justify-content:center;font-size:13px;font-weight:550}.primary svg{width:18px;height:18px}.episode-row{display:flex;align-items:center;width:100%;padding:20px 12px;border-top:1px solid var(--line);gap:18px;text-align:left;min-height:95px}.episode-row:hover{background:#faf8fd}.episode-index{color:#aaa1b6;width:23px;font-size:12px;flex:none}.episode-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px}.episode-copy strong{font-size:15px;font-weight:550}.episode-copy .muted{font-size:12px}.episode-duration{font-size:12px;color:#9a93a3}.episode-play{color:var(--purple);display:grid;place-items:center;background:#f0e9fa;width:31px;height:31px;border-radius:50%}.episode-play svg{width:16px;height:16px}.empty,.error-state{min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px}.empty h2,.error-state h2{font-size:22px;margin:0 0 10px}.empty p,.error-state p{font-size:14px;color:#87818d;max-width:450px}.preparing-dot{width:30px;height:30px;border:3px solid #eee7f7;border-top-color:var(--purple);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
/* A calm, split-screen study player. */
.player-header{display:flex;align-items:center;gap:20px;margin-bottom:28px}.player-back-btn{display:flex;align-items:center;gap:8px;color:var(--purple);font-size:12px;white-space:nowrap}.player-back-btn svg{width:17px}.player-title{font-size:18px;line-height:1.4;font-weight:620;margin:0}.player-sub{font-size:12px;color:var(--muted)}.player-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:30px;align-items:start}.player-left{position:sticky;top:95px;min-width:0}.player-media-wrap:has(audio){display:none}.player-media{display:block;width:100%;max-height:55vh;aspect-ratio:16/9;background:#17131d;border-radius:12px}.player-info{display:flex;justify-content:center;background:#f5f2f8;border-radius:12px;padding:25px;margin-bottom:16px}.player-info:empty{display:none}.player-info .player-cover{width:78%;aspect-ratio:1;object-fit:cover;border-radius:8px;box-shadow:0 7px 25px #30253f18}.player-left:has(video) .player-info{display:none}.player-right{min-width:0;border:1px solid #efebf4;border-radius:12px;overflow:hidden;background:#fdfcfe}.pf-list-head{display:flex;align-items:center;justify-content:space-between;padding:17px 22px;border-bottom:1px solid var(--line);font-size:13px;font-weight:600}.pf-list-count{color:#99919f;font-size:11px;font-weight:400}.pf-list-scroll{max-height:52vh;overflow:auto;position:relative;overscroll-behavior:contain;padding:8px}.pf-cue{padding:15px 15px 17px;border-radius:8px;border:1px solid transparent;margin:3px 0;transition:background .18s}.pf-cue:hover{background:#f7f3fc}.pf-cue.is-active{background:#eee6fa;border-color:#e0cff8}.pf-cue-meta{display:flex;align-items:center;gap:8px;color:#9d93a8;font-size:10px;margin-bottom:8px}.pf-cue-idx{display:none}.pf-cue-save{margin-left:auto;display:flex;align-items:center;color:#a296b0;padding:3px}.pf-cue-save svg{width:14px;height:14px}.pf-cue-save[aria-pressed=true]{color:var(--purple)}.pf-explain-button{font-size:10px;color:var(--purple);padding:3px 7px;background:#eee7f8;border-radius:4px}.pf-cue-text{font-size:17px;line-height:1.7;font-weight:500;color:#35303e}.pf-word{cursor:pointer}.pf-word:hover{color:var(--purple);background:#e1d3f4;border-radius:2px}.pf-cue-translation{color:#8c809b;font-size:13px;line-height:1.8;margin-top:9px}.pf-expl-box{padding:19px 22px;border-top:1px solid var(--line);background:white}.pf-expl-title{font-size:13px;font-weight:600;color:var(--purple);margin-bottom:12px}.pf-expl-body{font-size:13px;line-height:1.9;white-space:pre-wrap;max-height:230px;overflow:auto}.pf-expl-cue{color:#91869d;margin-bottom:10px}.pf-expl-empty{color:#a098a8}.player-controls{display:flex;align-items:center;gap:12px;padding:16px 0 8px}.pf-btn{display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;flex:none}.pf-play{background:var(--purple);color:white;width:43px;height:43px;border-radius:50%}.pf-play-label{display:none}.pf-play svg{width:21px}.pf-seek-wrap{flex:1;min-width:0}.pf-seek{width:100%;accent-color:var(--purple);height:4px;display:block;cursor:pointer}.pf-time-row{display:flex;justify-content:space-between;font-size:10px;color:#a096ad;margin-top:8px}.pf-rate{padding:6px 3px;border:0;color:#80708e;font-size:12px;background:none}.pf-loop{color:#9b8ba8;width:30px}.pf-loop .pf-btn-label{display:none}.pf-loop svg{width:18px}.pf-loop.is-on{color:var(--purple)}.player-subcontrols{display:flex;gap:10px;margin-top:20px}.pf-toggle{display:flex;align-items:center;gap:6px;background:#f5f2f8;color:#9b90a7;padding:7px 11px;font-size:11px;border-radius:6px}.pf-toggle svg{width:14px;height:14px}.pf-toggle.is-on{background:#eee5fb;color:var(--purple)}.player-status{flex-direction:column;align-items:center;gap:12px;padding:15px;color:#9d859f;font-size:12px;background:#faf5fa;border-radius:8px}.pf-status-actions{display:flex;gap:20px}.pf-status-actions button{color:var(--purple)}.pf-expl-locked{display:flex;gap:8px}.pf-expl-locked svg{width:17px}.pf-expl-cta{font-size:12px;color:var(--purple)}#notice{position:fixed;max-width:490px;width:calc(100% - 40px);max-height:80vh;border:0;border-radius:16px;padding:30px;color:var(--ink);box-shadow:0 20px 80px #21103025}#notice::backdrop{background:#21163055;backdrop-filter:blur(4px)}.notice-content{white-space:pre-wrap;line-height:1.9;font-size:14px;max-height:60vh;overflow:auto}.notice-form{margin:0}.notice-form .notice-title{display:none}.notice-actions{position:absolute;right:15px;top:15px}.notice-close{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#f2eef8!important;color:#8e7a9f!important}.notice-close svg{width:16px}.notice-content h2{font-size:23px;margin:0 0 15px}.notice-content label{display:flex;flex-direction:column;gap:6px;margin:12px 0;font-size:12px;white-space:normal}.notice-content input{padding:12px;border:1px solid #e5ddeb;border-radius:7px;width:100%;font-size:15px}.notice-content form>.primary{width:100%;margin-top:12px}#login-error{color:#b45267;font-size:12px}
@media(min-width:1600px){.cards{grid-template-columns:repeat(7,minmax(0,1fr))}.hero{min-height:285px}.hero-copy h2{font-size:31px}}@media(max-width:1150px){.cards{grid-template-columns:repeat(4,minmax(0,1fr))}.hero-copy h2{font-size:22px}.hero{min-height:218px;padding:19px;grid-template-columns:minmax(0,1fr) 39%}.player-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.player-controls{gap:8px}}@media(max-width:850px) and (min-width:701px){.sidebar{width:185px;padding-left:18px;padding-right:18px}.main{margin-left:185px}#content{padding:25px}.hero-grid{grid-template-columns:1fr}.hero{min-height:210px;grid-template-columns:minmax(0,1fr) 150px}.player-body{grid-template-columns:1fr}.player-left{position:static}.player-info .player-cover{width:200px}.series-art{width:155px;height:155px}}
@media(max-width:700px){.sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;height:65px;z-index:60;border-top:1px solid var(--line);padding:6px 10px;background:#fcfbfe;overflow:visible;backdrop-filter:blur(15px)}.sidebar .brand,.sidebar .search-wrap,.sidebar:after{display:none}.sidebar nav{display:flex;justify-content:space-around;gap:0;margin:0}.sidebar nav button{display:flex;flex-direction:column;justify-content:center;gap:3px!important;padding:5px 12px;min-width:65px;font-size:10px;min-height:49px}.sidebar nav button svg{width:20px;height:20px}.main{margin-left:0;margin-top:0;padding-bottom:70px}#toolbar{padding:9px 18px;height:54px}#content{padding:22px 20px 40px}.page-heading{margin-bottom:18px}.page-heading h1{font-size:29px}.page-heading>.muted{font-size:10px}.hero-grid{display:flex;overflow:auto;gap:14px;margin:0 -20px 28px;padding:0 20px;scroll-snap-type:x mandatory}.hero{min-width:calc(100vw - 58px);min-height:220px;padding:22px;grid-template-columns:minmax(0,1fr) 43%;scroll-snap-align:center}.hero-copy h2{font-size:25px}.cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 15px}.card-title{font-size:11px}.section-head h2{font-size:18px}.section-head .muted{font-size:10px}.filters{gap:5px}.filters .chip{font-size:10px;padding:5px 10px}.filters select{font-size:10px;margin:4px 0}.series-head{gap:20px;align-items:flex-start}.series-art{width:110px;height:110px;border-radius:8px}.series-head h1{font-size:21px;margin-top:6px}.series-description{font-size:11px}.series-head .primary{font-size:11px;padding:8px 13px}.episode-row{padding:17px 0;gap:12px}.episode-copy strong{font-size:13px}.episode-copy .muted{font-size:10px}.episode-duration{display:none}.player-header{gap:12px}.player-title{font-size:15px}.player-body{display:flex;flex-direction:column;gap:25px}.player-left,.player-right{width:100%;position:static}.player-info{padding:18px}.player-info .player-cover{max-width:235px}.player-media{max-height:35vh}.pf-list-scroll{max-height:50vh}.pf-cue-text{font-size:17px}.player-subcontrols{margin-top:12px}.notice-content{font-size:13px}#connection{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.app{width:100%;display:block}.sidebar{gap:0}.sidebar .search-wrap{flex:none;min-height:34px}.sidebar-brand{flex:none}.brand-mark svg{color:white}.sidebar .nav{flex:none}.main{width:calc(100% - 230px)}.empty,.error-state{border:0;background:transparent;min-height:60vh}.sidebar #search{min-width:0}.card .cover-letter{font-size:40px}#notice .notice-content{padding-right:5px}
@media(max-width:850px) and (min-width:701px){.main{width:calc(100% - 185px)}}@media(max-width:700px){.main{width:100%}.sidebar nav{flex-direction:row}.sidebar nav button{width:auto}.sidebar nav .nav-label{display:block}}
/* Account dialogs use their own form layout, never the close-form row. */
#notice .auth-content{white-space:normal;padding:5px 2px 0;overflow:visible}#notice .auth-header{text-align:center;margin:0 0 22px}.auth-icon{width:62px;height:62px;border-radius:18px;display:block;margin:0 auto 15px}#notice .auth-header h2{font-size:23px;line-height:1.4;margin:0 0 9px;font-weight:650}#notice .auth-subtitle{font-size:12px;line-height:1.7;margin:0;color:#978c9f}#notice .auth-tabs{display:flex;background:#f5f1f9;padding:4px;border-radius:9px;margin-bottom:24px;gap:4px}#notice .auth-tab{flex:1;padding:9px 6px;border-radius:6px;font-size:13px;color:#978b9f}#notice .auth-tab.selected{background:white;color:#7342bf;box-shadow:0 1px 5px #3820480c;font-weight:600}#notice form.auth-form{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:19px!important;margin:0!important;width:100%}#notice .auth-phone-row{display:grid;grid-template-columns:78px minmax(0,1fr);gap:8px;align-items:start}#notice .auth-phone-row>.auth-label{grid-column:1/-1;margin:0}#notice .auth-label{display:block;font-size:12px;font-weight:500;color:#6c6078;margin:0 0 8px}#notice input.auth-input,#notice select.auth-country{height:46px;border:1px solid #e8e1ef!important;background:#fcfbfe;border-radius:8px;padding:0 13px;font-size:14px;min-width:0;width:100%;box-shadow:none;outline:none}#notice input.auth-input:focus,#notice select.auth-country:focus{border-color:#a27bd8!important;box-shadow:0 0 0 3px #783edb0b}#notice .auth-code-row{display:flex;gap:8px;align-items:stretch}#notice .auth-code-row>.auth-input{flex:1;min-width:0}#notice .auth-code-button{font-size:12px;color:#7842c2;padding:0 12px;background:#f1eafa;border-radius:8px;flex:none}#notice .auth-submit.primary{width:100%;height:46px;border-radius:8px;font-size:14px;margin:2px 0 0;line-height:1;padding:0}#notice .auth-error{font-size:12px;color:#b34e65;line-height:1.7;margin:0;padding:10px 12px;background:#fff3f6;border-radius:7px}#notice .auth-error[hidden],#notice .auth-field[hidden]{display:none!important}.auth-form button:disabled{opacity:.5;cursor:wait}.brand-logo{width:40px;height:40px;border-radius:12px;box-shadow:0 2px 8px #51406316;flex:none}.brand{gap:10px}.pf-word.is-word-active{background:#d9c6f5;color:#6329aa;border-radius:4px;box-shadow:0 0 0 2px #d9c6f5;transition:background-color 80ms linear}.pf-word[aria-current=true]{font-weight:inherit}@media(prefers-reduced-motion:reduce){.pf-word.is-word-active{transition:none}}@media(max-width:700px){#notice{padding:27px 24px}.auth-icon{width:54px;height:54px}.auth-country{min-width:70px}}
.membership-entry{border:0;border-radius:7px;padding:7px 14px;color:#88619c;background:#f8f3ed;font-size:12px;white-space:nowrap}.dictionary-content{white-space:normal!important}.dictionary-content h2{margin-bottom:6px!important}.dictionary-content h3{font-size:13px;color:#89649f;margin:24px 0 10px;font-weight:600}.dictionary-content p{font-size:14px;line-height:1.8;margin:8px 0}.dictionary-phonetics{font-size:12px!important;color:#a096aa}.dictionary-example{padding-top:6px}.dictionary-relations{display:flex;flex-wrap:wrap;gap:7px}.dictionary-relations button{padding:5px 10px;background:#f2eafa;color:#7844aa;border-radius:6px;font-size:12px}@media(max-width:700px){.membership-entry{padding:7px 10px}}
/* Membership checkout follows the existing PingFang / lilac identity. */
#notice:has(.checkout){width:min(660px,calc(100vw - 32px));max-width:660px;padding:30px;border-radius:26px}#notice .checkout{white-space:normal;max-height:85dvh;overflow-y:auto;text-align:center;padding:8px 2px 12px}.checkout-head{position:relative}.checkout-brand{width:62px;height:62px;border-radius:19px}.checkout-eyebrow{font-size:10px;letter-spacing:2.2px;color:#866baf;margin:14px 0 8px}.checkout h2{font-size:25px;letter-spacing:-.8px;color:#30253c;margin:0 0 10px}.checkout-subtitle{font-size:13px;color:#81768a}.checkout-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:26px 0 20px}.checkout-plan{display:flex;flex-direction:column;align-items:center;gap:12px;padding:20px 8px;border:1px solid #e6dfea;border-radius:17px;background:#fff;color:#392d43;cursor:pointer}.checkout-plan[aria-pressed=true]{border:2px solid #8560b1;padding:19px 7px;background:#f5effd}.plan-name{font-size:13px;font-weight:600}.plan-price{display:flex;gap:2px;align-items:baseline}.plan-price small{font-size:15px}.plan-price strong{font-size:32px;line-height:1;font-weight:650;letter-spacing:-1px}.plan-period{font-size:11px;color:#8e8395}.checkout-test-notice{text-align:left;padding:15px 17px;border-radius:14px;background:#f2f6f3;color:#326748}.checkout-test-notice strong{font-size:13px}.checkout-test-notice p{font-size:12px;line-height:1.7;margin:7px 0 0}.checkout-start{width:100%;margin-top:18px;min-height:46px;border-radius:13px!important;font-size:14px!important}.checkout-state{font-size:12px;line-height:1.7;color:#81768a;min-height:21px}.checkout-qr-panel{border-top:1px solid #eee8f1;padding-top:20px}.checkout-qr-panel[hidden]{display:none!important}.wechat-label{color:#159d60;font-weight:650;font-size:15px}.checkout-amount{font-size:30px;font-weight:650;color:#30253c;margin:10px 0}.receipt-image{width:230px;max-width:100%;display:block;margin:10px auto;border-radius:12px}.receipt-name,.order-reference{font-size:11px;color:#7b7182;overflow-wrap:anywhere}.checkout-disclaimer{font-size:12px;line-height:1.65;color:#786b80;background:#f8f5fb;padding:12px;border-radius:10px}.checkout-plan:focus-visible{outline:3px solid #c8b3e6;outline-offset:3px}@media(max-width:480px){#notice:has(.checkout){padding:24px 16px}.checkout h2{font-size:21px}.plan-price strong{font-size:28px}.checkout-plans{gap:7px}}
#notice .checkout-brand{display:block;margin:0 auto}#notice .checkout h2{font-size:25px;line-height:1.3;margin:8px 0 12px}#notice .checkout p{line-height:1.65}#notice .checkout-eyebrow{font-size:10px;margin:14px 0 8px}#notice .checkout-subtitle{font-size:13px;margin:0}#notice .checkout-test-notice p{font-size:12px;margin:7px 0 0}#notice .checkout-amount{font-size:30px;font-weight:650;margin:10px 0}#notice .checkout-state{font-size:12px;margin:12px 0}#notice .checkout .receipt-name,#notice .checkout .order-reference{font-size:11px;margin:8px 0}#notice .checkout .checkout-disclaimer{font-size:12px;margin:12px 0 0}.checkout-has-order .checkout-plans,.checkout-has-order .checkout-test-notice,.checkout-has-order .checkout-start,.checkout-has-order .checkout-eyebrow{display:none!important}.checkout-has-order .checkout-qr-panel{border-top:0;padding-top:8px}.checkout-has-order .checkout-brand{width:44px;height:44px}.checkout-has-order .checkout-state{background:#f2f6f3;border-radius:10px;padding:9px}#notice .checkout-has-order h2{font-size:21px}.checkout-has-order .receipt-image{width:210px}@media(max-width:480px){#notice .checkout h2{font-size:21px}#notice .checkout-has-order h2{font-size:19px}}
/* Alipay checkout: retain the member-plan layout with clear payment states. */
.alipay-label{color:#1677ff;font-weight:700;font-size:18px;letter-spacing:.02em}.payment-qr{display:block;width:208px;height:208px;margin:14px auto;border-radius:12px;background:#fff;object-fit:contain}.payment-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 22px;border-radius:12px;background:#1677ff;color:#fff;text-decoration:none;font-weight:600;transition:transform 140ms cubic-bezier(.23,1,.32,1)}.payment-link:active{transform:scale(.98)}.payment-success{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#e7f7ee;color:#16834e;font-size:32px;margin:20px auto}.checkout-start{font-variant-numeric:tabular-nums}.checkout-plan:disabled{cursor:default;opacity:.65}.checkout-plan:disabled[aria-pressed=true]{opacity:1}.checkout-qr-panel[hidden]{display:none}@media(prefers-reduced-motion:reduce){.payment-link{transition:none}}
/* Compact account card, anchored to the account button. */
.account-popover{position:absolute;right:24px;top:54px;width:278px;max-width:calc(100vw - 32px);z-index:40;padding:18px 12px 10px;background:#fff;border:1px solid #eeeaf2;border-radius:20px;box-shadow:0 16px 50px #33214614,0 2px 8px #33214608;color:#302a37;text-align:left}.account-summary{display:flex;gap:11px;align-items:center;padding:3px 8px 17px;border-bottom:1px solid #f0edf3}.account-avatar{width:39px;height:39px;display:grid;place-items:center;flex:none;background:#eee6f9;color:#783edb;font-size:20px;font-weight:650;border-radius:13px}.account-summary>div{display:flex;flex-direction:column;gap:5px}.account-summary strong{font-size:14px;font-weight:600}.account-summary>div>span{font-size:11px;color:#938a9d}.account-status{margin-left:auto;width:7px;height:7px;background:#50a67c;border-radius:50%}.account-menu-actions{padding:8px 0}#toolbar .account-menu-actions button{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:43px;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:#44394f;font-size:13px;cursor:pointer;text-align:left}.account-menu-actions button>span:last-child{color:#9c90a8;font-size:17px}#toolbar .account-menu-actions button:focus-visible{outline-offset:-2px}#toolbar .account-menu-actions button[data-account-logout]{color:#9b6269}#toolbar .account-menu-actions button:disabled{opacity:.6}.account-footnote{padding:9px 10px 2px;margin:0;border-top:1px solid #f0edf3;font-size:11px;color:#a298aa;line-height:1.6}@media(hover:hover){#toolbar .account-menu-actions button:hover{background:#f6f2fa}}@media(max-width:600px){.account-popover{right:12px}}
/* Playback tools and structured teaching, shared with the app's practice flow. */
.player-subcontrols,.pf-practice{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.pf-practice{padding-top:12px;border-top:1px solid var(--line);margin-top:14px}.pf-option{min-height:36px;padding:7px 26px 7px 10px;border:1px solid #e9e2f0;border-radius:9px;background:#fff;color:#51405f;font-size:12px}.pf-toggle[aria-pressed=true]{background:#eee5fc;color:var(--purple)}.pf-ab-status{flex-basis:100%;font-size:11px;line-height:1.6;color:#816698;min-height:18px}.pf-immersive{margin-left:auto;white-space:nowrap}.pf-expl-body .teaching-section{margin:0 0 22px;white-space:normal}.teaching-section:last-child{margin-bottom:0}.teaching-section h3{font-size:12px;color:#8c719f;letter-spacing:.04em;margin:0 0 10px;font-weight:600}.teaching-section p{margin:6px 0;line-height:1.85}.teaching-translation{font-size:15px;color:#30263d}.teaching-word{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;padding:7px 0;border-bottom:1px solid #f1edf5}.teaching-word strong{font-weight:600;color:#493356}.teaching-word small{font-size:11px;color:#a092aa}.teaching-word span{color:#74647f}.teaching-phrase,.teaching-grammar{margin-bottom:16px}.teaching-grammar strong,.teaching-phrase strong{font-size:13px;font-weight:600;color:#4c365d}.teaching-example{color:#594c67}.teaching-muted{color:#9a8ca5;font-size:12px}.player-root[data-subtitles=none] .pf-list-scroll,.player-root[data-subtitles=none] .pf-list-head{display:none}.player-root[data-subtitles=none] .player-right:before{content:var(--lr-copy-subtitles-hidden,'字幕已隐藏');display:block;text-align:center;padding:60px 20px;color:#aaa0b3;font-size:13px}.player-immersive .sidebar,.player-immersive #toolbar{display:none!important}.player-immersive .main{margin-left:0!important}.player-immersive main{margin:0!important;padding:24px!important}.player-immersive #content{margin:0 auto;max-width:1280px}.is-immersive .player-header{margin-bottom:18px}.is-immersive .pf-list-scroll{height:48vh;max-height:none;display:flex;flex-direction:column;justify-content:center}.is-immersive .pf-cue:not(.is-active){display:none}.is-immersive .pf-cue.is-active{border-color:transparent;background:transparent}.is-immersive .pf-cue-text{font-size:25px;line-height:1.8}.is-immersive .pf-cue-translation{font-size:16px}.is-immersive .player-info .player-cover{max-width:300px}.is-immersive .pf-expl-body{max-height:32vh}@media(max-width:700px){.pf-immersive{font-size:11px}.player-header{gap:10px}.is-immersive .pf-list-scroll{height:30vh}.is-immersive .pf-cue-text{font-size:21px}.player-immersive main{padding:14px!important}}
/* Click to cycle: compact controls with their current state visible. */
.pf-cycle{display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;min-height:36px;white-space:nowrap;padding:7px 11px;transition:background 140ms ease,transform 140ms ease}.pf-cycle:active{transform:scale(.97)}.pf-cycle-icon{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:6px;background:#eee7f7;color:#79549f;font-size:11px;font-weight:600;line-height:1}.pf-cycle.pf-rate{font-variant-numeric:tabular-nums;min-width:48px;border:1px solid #e9e2f0;border-radius:9px;background:#fff;color:#51405f;font-size:12px}@media(hover:hover){.pf-cycle:hover{background:#f7f3fc}}@media(prefers-reduced-motion:reduce){.pf-cycle{transition:none}}
/* Teaching hierarchy: clear section labels with restrained purple accents. */
.pf-expl-title{font-size:14px;font-weight:750;color:#493059;padding-bottom:12px;border-bottom:1px solid #eee8f3;margin-bottom:18px}.pf-expl-cue{padding:12px 14px;margin-bottom:20px;border-radius:10px;background:#f7f3fb;color:#766582;font-size:13px;line-height:1.8;white-space:normal}.pf-expl-body .teaching-section{margin-bottom:24px}.teaching-section h3,#notice .dictionary-content h3{display:flex;align-items:center;gap:9px;font-size:14px;line-height:1.5;font-weight:750;letter-spacing:0;color:#493059;margin:0 0 12px}.teaching-section h3:before,#notice .dictionary-content h3:before{content:'';display:block;flex:none;width:3px;height:14px;border-radius:2px;background:#9670c7}.teaching-section+.teaching-section{padding-top:18px;border-top:1px solid #f0ebf5}.teaching-phrase strong,.teaching-grammar strong,.teaching-word strong{font-weight:700;color:#46324f}.teaching-grammar p,.teaching-phrase p{color:#75687e;font-size:13px;line-height:1.85}.teaching-word{padding:9px 0}.teaching-example{padding-left:11px;border-left:2px solid #e9dff4}
#notice .dictionary-content{white-space:normal;padding:2px 4px 8px}#notice .dictionary-content h2{font-size:28px;font-weight:750;line-height:1.3;letter-spacing:-.4px;color:#36273f;margin:0 28px 10px 0}#notice .dictionary-content .dictionary-phonetics{font-size:12px;line-height:1.7;color:#9b8ba6;margin:0 0 22px}#notice .dictionary-content h3{margin:24px 0 12px;padding-top:18px;border-top:1px solid #eee8f3}#notice .dictionary-content p{font-size:13px;line-height:1.85;color:#6e6079;margin:8px 0}#notice .dictionary-content .dictionary-example{padding:10px 13px;margin:12px 0 5px;background:#f8f5fc;border-radius:9px;color:#4c3a5b}#notice .dictionary-content p.muted{color:#9b8ba6;font-size:12px;padding-left:13px}#notice .dictionary-relations{display:flex;flex-wrap:wrap;gap:7px}#notice .dictionary-relations button{padding:6px 11px;background:#f3edf9;color:#79539d;border-radius:8px;font-size:12px;font-weight:550;min-height:32px}
/* Docked playback workspace: captions and controls beside sentence teaching. */
.player-body{grid-template-columns:minmax(0,1.25fr) minmax(280px,1fr);gap:22px;align-items:start}
.player-body>.player-right{min-width:0;background:#fff;border-radius:16px}
.player-right>.player-left{position:static;padding:16px 18px 0}
.player-right .player-info{justify-content:flex-start;padding:0;margin:0 0 14px;background:transparent}
.player-right .player-info .player-cover{width:62px;max-width:62px;border-radius:10px;box-shadow:none}
.player-right .player-media-wrap:has(video){margin-bottom:16px}
.player-right .player-media{max-height:30vh}
.pf-playback-footer{border-top:1px solid #eee8f3;padding:4px 18px 12px;background:#fcfaff}
.pf-playback-footer .player-subcontrols{margin-top:10px}
.pf-playback-footer .pf-practice{margin-top:12px;padding-top:12px}
.pf-playback-footer .pf-ab-status:empty{display:none}
.player-body>.pf-expl-box{position:sticky;top:84px;display:flex;flex-direction:column;min-width:0;min-height:380px;height:calc(100dvh - 160px);max-height:850px;padding:0;border:1px solid #e9e1f0;border-radius:16px;background:#fff;overflow:hidden}
.pf-expl-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;padding:17px 20px;border-bottom:1px solid #eee8f3;background:#fcfaff}
.pf-expl-header .pf-expl-title{padding:0;margin:0;border:0;font-size:15px;font-weight:750}
.pf-expl-close{display:grid;place-items:center;flex:none;width:30px;height:30px;border:0;border-radius:50%;background:#f1eaf7;color:#8a739e;font-size:22px;font-weight:400;cursor:pointer;line-height:1}
.player-body>.pf-expl-box .pf-expl-body{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:20px;white-space:normal;scrollbar-gutter:stable}
.pf-expl-close:focus-visible{outline:2px solid #a27acc;outline-offset:3px}
.pf-expl-body>.pf-expl-empty{display:grid;align-content:center;min-height:240px;text-align:center;padding:24px;line-height:1.9;color:#a095ab;font-size:13px}
.player-root:not(.has-explanation) .pf-expl-close{visibility:hidden}
.is-immersive .player-body>.pf-expl-box{top:24px;height:calc(100dvh - 110px)}
.is-immersive .player-right .player-info .player-cover{width:62px;max-width:62px}
@media(max-width:900px){.player-body{grid-template-columns:minmax(0,1fr)}.player-body>.pf-expl-box{position:static;height:480px;max-height:65dvh;min-height:280px}.player-root:not(.has-explanation) .player-body>.pf-expl-box{display:none}.player-root.has-explanation .player-body>.pf-expl-box{display:flex}.player-right .pf-list-scroll{max-height:40vh}}

/* Book artwork keeps the original portrait proportion. */
.card-cover.book-art{aspect-ratio:2/3;height:auto}.series-art.book-art{width:144px;height:216px}@media(max-width:700px){.series-art.book-art{width:96px;height:144px}}

/* Episode links and their independent action controls are siblings. */
.episode-card{position:relative;gap:8px;padding:0 12px;cursor:pointer}.episode-card .episode-open{display:flex;align-items:center;gap:18px;flex:1;min-width:0;align-self:stretch;padding:20px 0;text-align:left;text-decoration:none;color:inherit;border-radius:6px}.episode-card .episode-actions{display:flex;gap:4px;flex:none;position:relative;z-index:1}.episode-card .episode-action{display:grid;place-items:center;min-width:44px;min-height:44px;border-radius:8px;color:#786b89}.episode-card .episode-action:hover{background:#eee5f8;color:#7144a5}.episode-card .episode-action.is-saved{color:#7144a5;background:#f1eafa}.episode-card .episode-action svg{width:19px;height:19px}.episode-card:focus-within{background:#faf7fe}@media(max-width:700px){.episode-card{gap:4px;padding:0}.episode-card .episode-open{gap:10px;padding:16px 0}.episode-card .episode-actions{gap:0}.episode-card .episode-action{min-width:40px;min-height:44px}.episode-card .episode-play{display:none}}

/* website-polish.css */
/* ListenRise — additive website polish overrides.
   Targets only existing selectors from public/style.css and public/ui.js.
   Purple (#783edb) / white identity preserved. No new markup.
*/

/* ===== 1. Search: magnifier + input alignment ===== */
/* #search already reserves left padding (32px) for an icon, but the live icon
   is a static flex sibling (.search-icon), not an absolutely positioned .search-wrap svg.
   Make the icon the flex box and neutralize the phantom padding + old absolute rule. */
.sidebar .search-wrap {
  align-items: center;
  gap: 0;
  min-height: 38px;
}

.sidebar .search-icon {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  align-self: stretch;
  color: #8e8e93;
  pointer-events: none;
}

.sidebar .search-icon svg {
  position: static;
  left: auto;
  width: 15px;
  height: 15px;
  margin: 0;
}

.sidebar #search.search-input,
.sidebar #search {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 2px;
  padding-right: 10px;
  line-height: 1.35;
  min-height: 34px;
}

.sidebar .search-wrap:focus-within .search-icon {
  color: #783edb;
}

/* native clear button on type=search keeps text clear of the edge */
#search::-webkit-search-cancel-button {
  margin-right: 2px;
}

/* ===== 2. Connection status: internal only, never visible ===== */
#connection,
#connection.is-offline,
#connection.is-loading,
#connection.connection {
  display: none !important;
  visibility: hidden !important;
}

/* ===== 3. Focus visibility (keyboard) ===== */
.nav-btn:focus-visible,
.card:focus-visible,
.hero:focus-visible,
#refresh:focus-visible,
#search:focus-visible,
.episode-row:focus-visible,
.pf-cue:focus-visible,
.pf-btn:focus-visible,
.pf-toggle:focus-visible,
.pf-option:focus-visible,
.pf-immersive:focus-visible,
.membership-entry:focus-visible,
.account-button:focus-visible,
.mini-controls button:focus-visible,
#notice button:focus-visible,
#notice .auth-input:focus-visible {
  outline: 2px solid #783edb;
  outline-offset: 2px;
}

#content:focus {
  outline: none;
}

#search:focus-visible {
  border-color: #783edb;
  box-shadow: 0 0 0 3px rgba(120, 62, 219, 0.15);
}

/* ===== 4. Touch targets ===== */
#refresh {
  min-width: 40px;
  min-height: 40px;
}

.nav-btn {
  min-height: 44px;
}

.episode-row .ep-play,
.episode-play {
  min-width: 40px;
  min-height: 40px;
}

.pf-btn,
.pf-toggle,
.pf-option,
.pf-cycle,
.pf-cue-save,
.pf-explain-button,
.pf-expl-close,
.notice-close,
.mini-controls button {
  min-height: 40px;
}

.pf-btn svg,
.pf-toggle svg,
.mini-controls button svg {
  width: 18px;
  height: 18px;
}

.mini-controls button {
  min-width: 40px;
  min-height: 40px;
}

/* ===== 5. Responsive nav ===== */
@media (max-width: 850px) and (min-width: 701px) {
  .nav-btn {
    min-height: 44px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .sidebar .search-wrap {
    min-height: 36px;
  }
}

@media (max-width: 700px) {
  .sidebar {
    overflow-x: hidden;
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }

  .sidebar nav button {
    min-height: 48px;
    min-width: 64px;
    padding: 6px 10px;
  }

  .sidebar nav .nav-label {
    line-height: 1.2;
  }

  #toolbar {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  #refresh {
    min-width: 44px;
    min-height: 44px;
  }

  .main {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

/* ===== 6. Small-screen dialog ===== */
#notice {
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 480px) {
  #notice,
  #notice:has(.checkout) {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 22px 18px;
    border-radius: 18px;
  }

  #notice .notice-content,
  #notice .checkout {
    max-height: none;
    overflow: visible;
  }

  #notice .auth-form,
  #notice input.auth-input,
  #notice .auth-submit.primary,
  #notice .checkout-start,
  #notice .auth-code-button {
    min-height: 44px;
  }

  .notice-close,
  #notice .notice-close {
    min-width: 40px;
    min-height: 40px;
  }
}

/* ===== 7. Small-screen player: keep split layout, protect subtitles ===== */
@media (max-width: 700px) {
  .player-right .pf-list-scroll {
    max-height: min(42vh, 340px);
  }

  .pf-list-head {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fdfcfe;
  }

  .pf-expl-body .teaching-section:last-child {
    padding-bottom: 8px;
  }
}

/* Docked mini player never covers transcript text on phones */
@media (max-width: 700px) {
  #mini:not([hidden]) {
    padding-bottom: max(9px, env(safe-area-inset-bottom));
  }

  .mini-media,
  .mini-controls {
    min-width: 0;
  }

  .mini-title,
  .mini-sub {
    max-width: 100%;
  }

  #content {
    padding-bottom: calc(140px + env(safe-area-inset-bottom));
  }
}

/* ===== 8. Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .hero,
  .card,
  .cards > button,
  .pf-cycle,
  .payment-link,
  .sidebar nav button,
  #refresh svg {
    transition: none !important;
    transform: none !important;
  }

  .hero:hover,
  .card:hover,
  .cards > button:hover {
    transform: none !important;
  }

  #refresh.is-spinning svg,
  .preparing-dot {
    animation: none !important;
  }
}
.checkout-plans{grid-template-columns:repeat(4,minmax(0,1fr))}.site-info-links{display:flex;gap:14px;margin-top:24px;font-size:12px}.site-info-links a{color:#86838d;text-decoration:none}@media(max-width:520px){.checkout-plans{grid-template-columns:repeat(2,minmax(0,1fr))}.site-info-links{display:none}}

.checkout-membership-status{margin:20px 0;padding:18px 20px;border-radius:16px;background:#f5f2fc;text-align:left}.checkout-membership-status strong{display:block;font-size:17px;font-weight:650;color:#604896}.checkout-membership-status p{margin:8px 0 0;font-size:13px;line-height:1.7;color:#625b72;overflow-wrap:anywhere}

/* Account binding: the existing authentication surface, without a second account. */
.account-bind-mark { display:grid;place-items:center;width:52px;height:52px;margin:0 auto 16px;border-radius:17px;color:#7252d6;background:#f0edf9; }
.account-bind-mark svg { width:26px;height:26px; }
.account-bind-summary { padding:16px 18px;border:1px solid #e7e8ef;border-radius:15px;margin-bottom:20px;background:#f8f9fc; }
.account-bind-summary strong { font-size:15px;color:#303a4b; }
.account-bind-summary p { margin:8px 0 0;font-size:13px;line-height:1.8; }
.account-bind-form { display:flex;flex-direction:column;gap:12px; }
.account-bind-code-row { display:grid;grid-template-columns:minmax(0,1fr) 118px;gap:10px;align-items:center; }
.account-bind-code-row .auth-code-btn { position:static;width:auto;min-height:44px; }
.account-bind-form .auth-subtitle { text-align:left;font-size:12px;line-height:1.85; }
.learning-record { padding:22px 24px;border:1px solid #e8ebf0;border-radius:14px;background:#fff;margin-bottom:12px; }
.learning-record h3 { margin:0 0 10px;font-size:17px;line-height:1.65;color:#303a4b;font-weight:650; }
.learning-record p { margin:0 0 16px;font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:#647083; }
.learning-record button { margin-right:8px; }

/* Persistent application navigation. Keep this shell outside the workbench so
   reading and listening use the same navigation state as discovery. */
.lr-site-app.app { --lr-rail-width:236px; }
.lr-site-app.app[data-sidebar='collapsed'] { --lr-rail-width:78px; }
.lr-site-app .lr-skip-link { position:fixed; z-index:300; left:14px; top:10px; padding:12px 18px; border-radius:12px; color:var(--color-ink,#121629); background:#fff; box-shadow:0 4px 20px rgba(18,22,41,0.12); transform:translateY(-160%); }
.lr-site-app .lr-skip-link:focus { transform:translateY(0); }
.lr-site-app .lr-mobile-bar,.lr-site-app .lr-sidebar-scrim { display:none; }
.lr-site-app .lr-site-sidebar { position:fixed; inset:0 auto 0 0; z-index:90; display:flex; flex-direction:column; width:var(--lr-rail-width); height:100dvh; padding:22px 14px 18px; border-right:1px solid var(--color-rule,#eaeff7); background:#ffffff; color:var(--color-ink,#121629); box-sizing:border-box; box-shadow:2px 0 20px rgba(18,22,41,0.025); transition:width 220ms cubic-bezier(.22,1,.36,1); }
.lr-site-app .lr-sidebar-top { position:relative; display:flex; align-items:center; justify-content:space-between; gap:6px; min-height:44px; padding:0 4px; flex:none; }
.lr-site-app .lr-site-sidebar .site-brand { display:flex; align-items:center; gap:10px; min-width:0; padding:0; margin:0; border:0; background:transparent; color:var(--color-ink,#121629); }
.lr-site-app .lr-site-sidebar .brand-name { font-family:var(--font-display,Lexend,sans-serif); font-size:19px; font-weight:700; letter-spacing:-.6px; }
.lr-site-app .lr-sidebar-toggle { display:grid; place-items:center; flex:none; min-width:36px; width:36px; min-height:38px; height:38px; padding:8px; border:0; border-radius:10px; color:var(--color-muted,#646d82); background:transparent; cursor:pointer; transition:background-color 150ms ease,color 150ms ease; }
.lr-site-app .lr-sidebar-toggle .icon { width:19px; height:19px; }
.lr-site-app .lr-sidebar-toggle:hover { color:var(--color-ink,#121629); background:var(--color-soft,#eef1f7); }
.lr-site-app .lr-site-sidebar .site-primary-nav { display:flex; flex:1 1 auto; min-height:80px; min-width:0; flex-direction:column; justify-content:flex-start; align-items:stretch; gap:6px; margin:22px 0 0; overflow-y:auto; overflow-x:hidden; scrollbar-width:thin; padding:4px 0; }
.lr-site-app .lr-site-sidebar .site-primary-nav .nav-btn { display:flex; align-items:center; justify-content:flex-start; gap:13px!important; flex:none; width:100%; min-width:0; min-height:46px; padding:11px 15px; margin:0; border:0; border-radius:14px; background:transparent; color:var(--color-muted,#646d82); font:500 13.5px/1.4 var(--font-body,sans-serif); white-space:nowrap; text-align:left; transition:background-color 160ms ease,color 160ms ease,transform 140ms ease; }
.lr-site-app .lr-site-sidebar .site-primary-nav .nav-btn .icon { width:20px; height:20px; flex:none; stroke-width:1.75; }
.lr-site-app .lr-site-sidebar .site-primary-nav .nav-btn:hover { color:var(--color-ink,#121629); background:var(--color-soft,#eef1f7); }
.lr-site-app .lr-site-sidebar .site-primary-nav .nav-btn.active { color:var(--color-accent,#584cf4); background:linear-gradient(135deg,#f1eeff 0%,#e9e4ff 100%); font-weight:700; box-shadow:inset 0 0 0 1px rgba(88,76,244,0.16); }
.lr-site-app .lr-sidebar-bottom { position:relative; display:flex; flex-direction:column; gap:6px; flex:none; padding-top:16px; margin-top:12px; border-top:1px solid var(--color-rule,#eaeff7); }
.lr-site-app .lr-site-sidebar .platform-download-dock#downloads-root { position:relative; inset:auto; display:block; width:100%; padding:0; margin:0; border:0; border-radius:0; background:transparent; box-shadow:none; z-index:auto; }
.lr-site-app .lr-site-sidebar .lr-downloads { padding:0; }
.lr-site-app .lr-site-sidebar .lr-downloads-trigger { display:flex; align-items:center; gap:13px; min-height:44px; padding:10px 15px; font-size:13px; font-weight:600; color:var(--color-muted,#646d82); border-radius:12px; }
.lr-site-app .lr-site-sidebar .lr-downloads-trigger svg { width:20px; height:20px; color:inherit; }
.lr-site-app .lr-site-sidebar .lr-downloads-panel { left:calc(100% + 16px); bottom:0; width:328px; border-radius:18px; border-color:var(--color-rule,#eaeff7); box-shadow:0 16px 40px rgba(18,22,41,0.12); max-width:calc(100vw - var(--lr-rail-width) - 28px); }
.lr-site-app .lr-site-sidebar #toolbar.site-tools { position:relative; inset:auto; display:flex!important; flex-direction:column; align-items:stretch; justify-content:flex-start; flex:none; gap:6px; height:auto; width:100%; padding:0; margin:0; border:0; background:transparent; backdrop-filter:none; }
.lr-site-app .lr-site-sidebar #toolbar > button { position:relative; display:flex; align-items:center; justify-content:flex-start; gap:13px; min-height:44px; width:100%; height:auto; padding:10px 15px; border:0; border-radius:12px; color:var(--color-muted,#646d82); background:transparent; font:600 13px/1.4 var(--font-body,sans-serif); text-align:left; white-space:nowrap; transition:all 150ms ease; }
.lr-site-app .lr-site-sidebar #toolbar > button:hover,.lr-site-app .lr-site-sidebar .lr-downloads-trigger:hover { color:var(--color-ink,#121629); background:var(--color-soft,#eef1f7); }
.lr-site-app .lr-site-sidebar #toolbar > button .icon { width:20px; height:20px; }
.lr-site-app .lr-site-sidebar #toolbar > .membership-entry { background:linear-gradient(135deg,#fff7eb 0%,#f5f0ff 100%); color:#4c3ac9; border:1px solid #ede7fb; }
.lr-site-app .lr-site-sidebar #toolbar > .membership-entry:hover { background:linear-gradient(135deg,#fff2de 0%,#ede6ff 100%); color:#3f2db8; }
.lr-site-app .lr-site-sidebar #toolbar > #account { color:var(--color-ink,#121629); background:var(--color-paper,#f6f7fb); border:1px solid var(--color-rule,#eaeff7); }
.lr-site-app .lr-site-sidebar #toolbar > .membership-entry::before,.lr-site-app .lr-site-sidebar #toolbar > #account::before { content:''; display:block; flex:none; width:19px; height:19px; background:currentColor; -webkit-mask:var(--lr-footer-icon) center/19px 19px no-repeat; mask:var(--lr-footer-icon) center/19px 19px no-repeat; }
.lr-site-app .lr-site-sidebar #toolbar > #account { --lr-footer-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3C/svg%3E"); }
.lr-site-app .lr-site-sidebar #toolbar > .membership-entry { --lr-footer-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 8 5 4 5-9 5 9 5-4-3 12H5L2 8z'/%3E%3C/svg%3E"); }
.lr-site-app .lr-site-sidebar #toolbar .account-popover { position:absolute; left:calc(100% + 16px); right:auto; top:auto; bottom:0; width:284px; border-radius:20px; border:1px solid var(--color-rule,#eaeff7); box-shadow:0 16px 40px rgba(18,22,41,0.12); max-width:calc(100vw - var(--lr-rail-width) - 28px); z-index:140; }
body:not(.player-immersive) .lr-site-app.app > .main { width:calc(100% - var(--lr-rail-width)); margin:0 0 0 var(--lr-rail-width)!important; padding:0 0 70px; min-height:100dvh; }
.lr-site-app.app > .site-header { width:calc(100% - var(--lr-rail-width)); margin-left:var(--lr-rail-width); }
.lr-site-app.app > .site-header .site-search-row { min-height:92px; padding-top:24px; padding-bottom:24px; }
.lr-site-app.app #mini { left:var(--lr-rail-width); }
.lr-site-app.app[data-page='play'] > .main { padding-bottom:0; }
.lr-site-app[data-sidebar='collapsed'] .lr-sidebar-top { flex-direction:column; gap:13px; }
.lr-site-app[data-sidebar='collapsed'] .lr-site-sidebar .brand-name,.lr-site-app[data-sidebar='collapsed'] .lr-site-sidebar .nav-label,.lr-site-app[data-sidebar='collapsed'] .lr-sidebar-welcome,.lr-site-app[data-sidebar='collapsed'] .lr-toolbar-label { display:none; }
.lr-site-app[data-sidebar='collapsed'] .lr-site-sidebar .site-primary-nav { margin-top:24px; }
.lr-site-app[data-sidebar='collapsed'] .lr-site-sidebar .site-primary-nav .nav-btn,.lr-site-app[data-sidebar='collapsed'] .lr-site-sidebar .lr-downloads-trigger,.lr-site-app[data-sidebar='collapsed'] .lr-site-sidebar #toolbar > button { justify-content:center; width:46px; min-width:46px; height:44px; padding:10px; gap:0!important; }
.lr-site-app[data-sidebar='collapsed'] .lr-site-sidebar #toolbar > .membership-entry,.lr-site-app[data-sidebar='collapsed'] .lr-site-sidebar #toolbar > #account { font-size:0; }
@media(min-width:761px) and (max-height:720px) { .lr-site-app .lr-sidebar-welcome { margin-top:17px; margin-bottom:13px; }.lr-site-app .lr-sidebar-welcome img { width:42px; height:42px; }.lr-site-app .lr-site-sidebar { padding-top:15px; }.lr-site-app .lr-site-sidebar .site-primary-nav .nav-btn { min-height:43px; padding-top:9px; padding-bottom:9px; } }
@media(max-width:760px) {
 .lr-site-app.app { --lr-rail-width:0px; }
 .lr-site-app .lr-mobile-bar { display:flex; position:sticky; top:0; z-index:95; align-items:center; gap:12px; min-height:62px; padding:8px max(16px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left)); border-bottom:1px solid var(--color-rule,#e7e3ec); background:var(--color-surface,#fff); }
 .lr-site-app .lr-mobile-bar .site-brand { display:flex; align-items:center; gap:8px; margin:0; padding:0; background:transparent; color:var(--color-ink,#29272e); }
 .lr-site-app .lr-mobile-bar .brand-logo { width:30px; height:30px; box-shadow:none; border-radius:0; object-fit:contain; }
 .lr-site-app .lr-mobile-bar .brand-name { font:600 18px var(--font-display,Lexend,sans-serif); letter-spacing:-.5px; }
 .lr-site-app .lr-mobile-menu { width:44px; min-width:44px; height:44px; min-height:44px; }
 .lr-site-app .lr-site-sidebar { z-index:120; width:min(280px,calc(100vw - 54px)); padding:18px 16px max(16px,env(safe-area-inset-bottom)); transform:translateX(-100%); visibility:hidden; transition:transform 220ms cubic-bezier(.22,1,.36,1),visibility 220ms; }
 .lr-site-app[data-sidebar='mobile-open'] .lr-site-sidebar { transform:translateX(0); visibility:visible; }
 .lr-site-app .lr-sidebar-scrim:not([hidden]) { display:block; position:fixed; inset:0; width:100%; height:100dvh; padding:0; margin:0; border:0; border-radius:0; background:#25213338; z-index:119; }
 .lr-site-app .lr-site-sidebar .site-primary-nav .nav-btn { min-height:46px; padding:11px 14px; }
 .lr-site-app .lr-sidebar-welcome { margin:20px 7px; }
 body:not(.player-immersive) .lr-site-app.app > .main,.lr-site-app.app > .site-header { width:100%; margin:0!important; }
 .lr-site-app.app > .site-header .site-search-row { min-height:0; padding:15px 20px 18px; }
 .lr-site-app.app > .site-header .site-search-row > p { display:none; }
 .lr-site-app.app > .site-header .site-search { width:100%; }
 .lr-site-app.app #mini { left:0; }
 .lr-site-app .lr-site-sidebar .lr-downloads-panel,.lr-site-app .lr-site-sidebar #toolbar .account-popover { position:fixed!important; inset:auto 12px 12px!important; bottom:max(12px,env(safe-area-inset-bottom))!important; width:auto!important; max-width:none!important; max-height:calc(100dvh - 32px); overflow:auto; z-index:140; }
 .lr-site-app .lr-site-sidebar #toolbar > button,.lr-site-app .lr-site-sidebar .lr-downloads-trigger { min-height:44px; }
}
@media(prefers-reduced-motion:reduce) { .lr-site-app .lr-site-sidebar { transition:none; } }

.lr-site-app[data-sidebar='collapsed'] .lr-downloads-trigger-label { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
/* Higher specificity than the previous workbench-only download suppression. */
.lr-site-app.app .lr-site-sidebar .platform-download-dock#downloads-root { display:block; }

@media(min-width:761px) and (max-height:580px) {
 .lr-site-app .lr-site-sidebar { padding-top:12px; padding-bottom:12px; }
 .lr-site-app .lr-sidebar-welcome { display:none; }
 .lr-site-app .lr-site-sidebar .site-primary-nav { min-height:0; margin-top:12px; }
 .lr-site-app .lr-sidebar-bottom { padding-top:8px; margin-top:8px; }
}
@media(max-width:760px) {
 .lr-site-app .lr-sidebar-top .lr-sidebar-toggle { min-width:44px; width:44px; min-height:44px; height:44px; }
}
@media(max-width:760px) and (max-height:580px) {
 .lr-site-app .lr-sidebar-welcome { display:none; }
 .lr-site-app .lr-site-sidebar .site-primary-nav { min-height:0; margin-top:12px; }
 .lr-site-app .lr-sidebar-bottom { padding-top:8px; margin-top:8px; }
}

.lr-language-settings{display:grid;gap:18px;padding:4px 0 22px;margin-bottom:12px;border-bottom:1px solid var(--line,#e2e8ef)}.lr-language-field{display:grid;grid-template-columns:minmax(100px,1fr) minmax(140px,1fr);align-items:center;gap:8px 16px}.lr-language-field strong{font-size:15px}.lr-language-field small{grid-column:1/-1;line-height:1.6;color:var(--muted,#66758a)}.lr-language-field select{min-height:44px;max-width:100%;padding:8px 12px;background:var(--surface,#fff);color:inherit;border:1px solid var(--line,#dce3ec);border-radius:9px;font:inherit}.lr-language-settings>.lr-settings-note:empty{display:none}.pf-cue-text,.reader-copy,.teaching-example,.dictionary-phonetics{direction:ltr;text-align:start}.pf-cue-translation,.reader-translation-copy{unicode-bidi:plaintext}.lr-language-field option{direction:auto}@media(max-width:420px){.lr-language-field{grid-template-columns:1fr}.lr-language-field small{grid-column:1}}

/* studio.css */
/* Reading workspace + shared page base.
   The player has its own authoritative stylesheet (player.css). */
:root{--studio-ink:#252334;--studio-muted:#8a8496;--studio-purple:#6a4bf5;--studio-line:#ece9f1;--studio-soft:#f3f0fa}
body{font-family:'PingFang SC',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:#f8f7fb;color:var(--studio-ink)}
button:focus-visible,a:focus-visible{outline:1px solid #737b8d;outline-offset:3px}

/* Reading is a real text workspace; it never requests an audio playback URL. */
.reader-top{display:flex;align-items:center;gap:15px;padding:4px 0 22px;color:#94859f;font-size:13px}
.reader-back{display:grid;place-items:center;width:36px;height:36px;background:white;border:1px solid var(--studio-line);border-radius:10px;color:#877592}
.reader-settings{margin-left:auto;display:flex;gap:6px}
.reader-settings button{height:34px;padding:0 12px;border:1px solid var(--studio-line);background:white;border-radius:8px;font-size:12px;color:#857094}
.reader-settings button[aria-pressed=true]{background:var(--studio-soft);color:var(--studio-purple)}
.reader-workspace{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:24px;align-items:start}
.reader-paper{background:white;border:1px solid var(--studio-line);border-radius:18px;padding:42px clamp(24px,4vw,65px)}
.reader-kicker{font-size:10px;letter-spacing:1.4px;color:#9a85b0;font-weight:650}
.reader-paper h1{font-size:30px;line-height:1.4;letter-spacing:-.7px;margin:16px 0}
.reader-original-title{font:18px/1.5 Georgia,serif;color:#82708f}
.reader-byline{font-size:11px;color:#a397ad;border-bottom:1px solid var(--studio-line);padding-bottom:25px;margin-bottom:25px}
.reader-paragraph{position:relative;padding:4px 24px 4px 0;border-radius:8px}
.reader-copy{font:var(--reading-font,19px)/2 Georgia,'Times New Roman',serif;color:#504857;margin:15px 0;white-space:pre-wrap}
.reader-word{display:inline;font:inherit;border:0;background:transparent;padding:0;color:inherit;cursor:pointer;border-radius:3px}
.reader-word:hover{background:#efe7fb;color:var(--studio-purple)}
.reader-explain{position:absolute;right:-12px;top:22px;display:grid;place-items:center;border:0;background:transparent;color:#c5b6d3;padding:4px;width:27px;height:27px;border-radius:7px}
.reader-explain:hover,.reader-paragraph.selected .reader-explain{color:var(--studio-purple);background:var(--studio-soft)}
.reader-explain svg{width:17px;height:17px}
.reader-translation{font-size:14px;line-height:1.9;color:#9a89a7;margin:0 0 20px}
.reader-inspector{position:sticky;top:24px;background:white;border:1px solid var(--studio-line);border-radius:18px;min-height:400px;padding:25px;max-height:calc(100dvh - 100px);overflow:auto}
.reader-inspector h2{font-size:14px;font-weight:650}
.reader-guide{font-size:12px;color:#a494af;line-height:1.9}
.reader-explanation{font-size:14px;line-height:1.9}
.reading-empty{margin:42px auto;max-width:500px;padding:55px 30px!important;border:1px solid var(--studio-line);background:white;border-radius:18px}
.reading-empty>.icon{width:36px;height:36px;color:#a38cc8;margin-bottom:18px}
.reading-empty h2{font-size:19px}
.reading-empty p{font-size:13px;color:#a094ad;line-height:1.9}

@media(max-width:1050px){
  .reader-workspace{grid-template-columns:1fr}
  .reader-inspector{position:static;min-height:160px}
  .reader-paper{padding:28px}
  .reader-paper h1{font-size:25px}
}
@media(prefers-reduced-motion:reduce){.reader-root *{transition:none!important;scroll-behavior:auto!important}}

/* player.css */
/* ListenRise · Redesigned Studio Listening & Video Workbench (2026-11) */
@font-face { font-family:ListenRisePlayerLexend; src:url('/design/Lexend-Regular.ttf'); font-weight:400; font-display:swap; }
@font-face { font-family:ListenRisePlayerLexend; src:url('/design/Lexend-Medium.ttf'); font-weight:500; font-display:swap; }
@font-face { font-family:ListenRisePlayerLexend; src:url('/design/Lexend-SemiBold.ttf'); font-weight:600; font-display:swap; }

.player-root.studio-player {
  --pf-canvas: #f6f7fb;
  --pf-paper: #f8f9fd;
  --pf-notebook: #ffffff;
  --pf-dock: rgba(255, 255, 255, 0.96);
  --pf-ink: #121629;
  --pf-secondary: #3b435b;
  --pf-muted: #646d82;
  --pf-line: #eaeff7;
  --pf-line-soft: #f0f3f9;
  --pf-hover: #f2f4fa;
  --pf-pressed: #eeebff;
  --pf-white: #ffffff;
  --pf-on-white: #121629;
  --pf-active-word: #584cf4;
  --pf-accent: #584cf4;
  --pf-accent-dark: #4336d6;
  --pf-ease: cubic-bezier(.22, 1, .36, 1);
  --pf-radius: 24px;
  --pf-display: ListenRisePlayerLexend, 'PingFang SC', sans-serif;
  --pf-shadow: rgba(18, 22, 41, 0.055);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 1460px;
  height: calc(100dvh - 44px);
  min-height: 580px;
  margin: 0 auto;
  padding: 0;
  color: var(--pf-ink);
  font: 15px/1.6 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body:has(.studio-player) { background: var(--pf-canvas); }
body:has(.studio-player) .sidebar, body:has(.studio-player) #toolbar { display: none !important; }
.lr-site-app.app[data-page='play'] > .main { padding-bottom: 0; }
.main:has(.studio-player) #content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 28px 24px !important;
  background: transparent;
}

.studio-player *, .studio-player *::before, .studio-player *::after { box-sizing: border-box; }
.studio-player button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
  min-height: 36px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--pf-secondary);
  font: inherit;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 140ms ease, box-shadow 150ms ease;
}
.studio-player button:hover { background: var(--pf-hover); color: var(--pf-ink); }
.studio-player button:active { transform: scale(0.96); }
.studio-player button:focus:not(:focus-visible) { outline: none; }
.studio-player button:focus-visible, .studio-player .pf-cue:focus-visible { outline: 2px solid var(--pf-accent); outline-offset: 2px; }
.studio-player button:disabled { opacity: .45; cursor: default; transform: none; }
.studio-player button[hidden], .studio-player [hidden] { display: none !important; }
.studio-player button svg, .studio-player .pf-empty-mark svg { display: block; flex: none; width: 19px; height: 19px; }
.studio-player .pf-cycle-icon { display: grid; place-items: center; min-width: 18px; width: 18px; height: 18px; color: inherit; }

/* ---------- Studio Top Episode Bar ---------- */
.studio-player .player-header {
  display: grid;
  grid-template-columns: auto 54px minmax(0, 1fr) auto;
  align-items: center;
  flex: none;
  gap: 14px;
  margin: 0;
  padding: 13px 18px;
  background: #ffffff;
  border: 1px solid var(--pf-line);
  border-radius: 22px;
  box-shadow: 0 6px 20px rgba(18, 22, 41, 0.038);
}

.studio-player .player-back-btn {
  width: auto;
  min-height: 38px;
  padding: 7px 14px 7px 11px;
  gap: 6px;
  border-radius: 999px;
  background: #f4f6fb;
  border: 1px solid var(--pf-line);
  color: var(--pf-ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.studio-player .player-back-btn:hover {
  background: var(--pf-pressed);
  border-color: rgba(88, 76, 244, 0.22);
  color: var(--pf-accent);
}
.studio-player .player-back-btn svg { width: 16px; height: 16px; }

.studio-player .reference-cover {
  position: static;
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--pf-pressed);
  color: var(--pf-accent);
  border: 1px solid rgba(18, 22, 41, 0.06);
  box-shadow: 0 4px 12px rgba(18, 22, 41, 0.08);
}
.studio-player .reference-cover .player-cover {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  border-radius: inherit;
}
.studio-player .pf-cover-letter { font-size: 22px; font-weight: 700; }

.studio-player .player-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.studio-player .player-title {
  order: 1;
  margin: 0;
  color: var(--pf-ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.studio-player .player-title-en {
  order: 2;
  margin: 0;
  font-family: var(--pf-display);
  color: var(--pf-muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.studio-player .pf-eyebrow {
  order: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  color: var(--pf-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.studio-player .pf-eyebrow .lr-level-pill {
  padding: 1.5px 7px;
  font-size: 10.5px;
}
.studio-player .pf-series-name {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-player .pf-sub-duration:empty,
.studio-player .pf-meta-dot:has(+ .pf-sub-duration:empty) { display: none; }
.studio-player .player-sub { display: none; }

.studio-player .pf-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-player .pf-head-actions .pf-page-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pf-pressed);
  color: var(--pf-accent);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.studio-player .pf-head-actions .pf-page-kind svg {
  display: block;
  width: 15px;
  height: 15px;
}

/* ---------- Split Studio Body ---------- */
.studio-player .player-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 396px;
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  flex: 1;
  gap: 18px;
  min-height: 0;
  width: 100%;
}

.studio-player .player-right,
.studio-player .pf-expl-box {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  width: auto;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transform: none;
  border: 1px solid var(--pf-line);
  border-radius: var(--pf-radius);
  opacity: 1;
}

.studio-player .player-right {
  background: linear-gradient(180deg, #fcfdff 0%, #f4f6fc 100%);
  box-shadow: 0 12px 34px rgba(18, 22, 41, 0.05);
}

.player-root.studio-player .player-body > .pf-expl-box {
  display: flex;
  position: relative;
  min-height: 0;
  height: 100%;
  max-height: none;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(18, 22, 41, 0.05);
}

.studio-player .player-left {
  position: static;
  flex: none;
  min-width: 0;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.studio-player .pf-stage-art {
  position: relative;
  min-height: 0;
  padding: 0;
  margin: 0;
  background: transparent;
}
.studio-player .player-media-wrap:has(audio) { display: none; }
.studio-player .player-media-wrap:has(video) {
  display: flex;
  justify-content: center;
  margin: 14px 16px 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0d1021;
  box-shadow: 0 10px 28px rgba(13, 16, 33, 0.16);
}
.studio-player video {
  display: block;
  width: 100%;
  max-height: min(33dvh, 320px);
  object-fit: contain;
  cursor: pointer;
}

.studio-player .pf-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px 10px;
  border-bottom: 1px solid rgba(234, 239, 247, 0.85);
  background: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  color: var(--pf-muted);
}
.studio-player .pf-list-title:empty { display: none; }
.studio-player .pf-list-count { font-family: var(--pf-display); font-weight: 600; color: var(--pf-accent); }
.studio-player .pf-list-count:empty { display: none; }
.studio-player .pf-list-hint { margin-left: auto; font-size: 11.5px; color: var(--pf-muted); }

/* ---------- Subtitle Stream ---------- */
.studio-player .pf-list-scroll {
  flex: 1;
  min-height: 120px;
  height: auto;
  max-height: none;
  padding: 18px 20px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  scrollbar-width: thin;
  scrollbar-color: #d8dfee transparent;
  overscroll-behavior: contain;
  scroll-padding-block: 28px;
}

.studio-player .pf-cue {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 12px;
  align-items: baseline;
  margin: 0 0 8px;
  padding: 18px 84px 18px 18px;
  border: 1.5px solid transparent;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 180ms ease, transform 160ms ease;
  cursor: pointer;
}
.studio-player .pf-cue::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: 16px;
  width: 3.5px;
  border-radius: 99px;
  background: var(--pf-accent);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 180ms ease, transform 200ms var(--pf-ease);
}
.studio-player .pf-cue:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(234, 239, 247, 0.9);
}
.studio-player .pf-cue.is-active,
.studio-player .pf-cue.active,
.studio-player .pf-cue.is-immersive-current {
  background: #ffffff;
  border-color: rgba(88, 76, 244, 0.22);
  color: var(--pf-on-white);
  box-shadow: 0 10px 28px rgba(88, 76, 244, 0.08), 0 2px 6px rgba(18, 22, 41, 0.03);
}
.studio-player .pf-cue.is-active::before,
.studio-player .pf-cue.is-immersive-current::before {
  opacity: 1;
  transform: scaleY(1);
}

.studio-player .pf-cue-time {
  font-family: var(--pf-display);
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 6px;
  color: #8b94a8;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.studio-player .pf-cue.is-active .pf-cue-time,
.studio-player .pf-cue.is-immersive-current .pf-cue-time {
  background: var(--pf-pressed);
  color: var(--pf-accent);
  font-weight: 600;
}

.studio-player .pf-cue-text {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding-top: 0;
  color: #566079;
  font-family: var(--pf-display);
  font-size: clamp(19px, 1.55vw, 23px);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -0.45px;
  overflow-wrap: anywhere;
  transition: color 150ms ease;
}
.studio-player .pf-cue.is-active .pf-cue-text,
.studio-player .pf-cue.is-immersive-current .pf-cue-text {
  color: var(--pf-ink);
  font-weight: 500;
}

.studio-player .pf-cue-translation {
  grid-column: 2;
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px dashed #e6ebf5;
  color: #5b647a;
  font-size: 14.5px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}
.studio-player .pf-cue.is-active .pf-cue-translation,
.studio-player .pf-cue.is-immersive-current .pf-cue-translation {
  color: #3f485f;
}

.studio-player .pf-word {
  border: 0;
  border-radius: 5px;
  padding: 0 1px;
  margin: 0 -1px;
  background: transparent;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease;
}
.studio-player .pf-word:hover {
  color: var(--pf-accent);
  background: rgba(88, 76, 244, 0.08);
}
.player-root.studio-player .pf-word.is-word-active,
.player-root.studio-player .pf-cue-text .is-word-active {
  color: var(--pf-active-word);
  background: rgba(88, 76, 244, 0.10);
  border-radius: 5px;
  outline: none;
  box-shadow: none;
}

.studio-player .pf-cue-meta {
  position: absolute;
  right: 12px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 2px;
  border-radius: 11px;
  background: rgba(246, 247, 251, 0.85);
  opacity: 0;
  transition: opacity 140ms ease;
}
.studio-player .pf-cue:hover .pf-cue-meta,
.studio-player .pf-cue:focus-within .pf-cue-meta,
.studio-player .pf-cue.is-active .pf-cue-meta,
.studio-player .pf-cue.is-explained .pf-cue-meta {
  opacity: 1;
}
.studio-player .pf-cue.is-active .pf-cue-meta {
  background: #f6f7fb;
}
.studio-player .pf-cue-action {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 6px;
  color: var(--pf-muted);
  border-radius: 9px;
  background: transparent;
}
.studio-player .pf-cue-action svg { width: 17px; height: 17px; }
.studio-player .pf-cue-action:hover {
  color: var(--pf-accent);
  background: var(--pf-pressed);
}
.studio-player .pf-cue-action[aria-pressed=true] {
  color: var(--pf-accent);
  background: var(--pf-pressed);
}

.studio-player .pf-subtitles-hidden { display: none; }
.studio-player[data-subtitles=none] .pf-list-scroll { display: none; }
.studio-player[data-subtitles=none] .pf-subtitles-hidden {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 160px;
  padding: 36px;
  color: var(--pf-muted);
  text-align: center;
}
.studio-player .pf-subtitles-hidden svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--pf-pressed);
  color: var(--pf-accent);
}
.studio-player .pf-subtitles-hidden strong { color: var(--pf-ink); font-size: 17px; font-weight: 700; }
.studio-player .pf-subtitles-hidden p { margin-top: 6px; font-size: 13px; line-height: 1.75; }

/* ---------- Unified Studio Control Dock ---------- */
.studio-player .pf-playback-footer {
  flex: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 16px 22px 15px;
  border: 0;
  border-top: 1px solid var(--pf-line);
  background: var(--pf-dock);
  backdrop-filter: blur(14px);
}
.studio-player .player-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px 16px;
  margin: 0;
  padding: 0;
}
.studio-player .pf-seek-wrap {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--pf-muted);
  font: 500 11.5px/1.4 var(--pf-display);
  font-variant-numeric: tabular-nums;
}
.studio-player .pf-current { color: var(--pf-accent); font-weight: 600; flex: none; min-width: 36px; }
.studio-player .pf-duration { flex: none; min-width: 36px; text-align: right; }

.studio-player .pf-seek {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 6px;
  margin: 0;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(to right, var(--pf-accent) 0 var(--pf-progress, 0%), #e4e9f4 var(--pf-progress, 0%) 100%);
  cursor: pointer;
  transition: height 120ms ease;
}
.studio-player .pf-seek:hover { height: 8px; }
.studio-player .pf-seek::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 3px solid var(--pf-accent);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(88, 76, 244, 0.35);
  transition: transform 120ms ease;
}
.studio-player .pf-seek:hover::-webkit-slider-thumb { transform: scale(1.14); }
.studio-player .pf-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 3px solid var(--pf-accent);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(88, 76, 244, 0.35);
}

.studio-player .studio-transport {
  display: flex;
  align-items: center;
  gap: 10px;
}
.studio-player .studio-transport button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  background: #f3f5fb;
  color: var(--pf-ink);
}
.studio-player .studio-transport button:hover {
  background: var(--pf-pressed);
  color: var(--pf-accent);
}
.studio-player .studio-transport .pf-play {
  width: 50px;
  min-width: 50px;
  height: 50px;
  padding: 13px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #6b5ff8 0%, #584cf4 100%);
  box-shadow: 0 6px 18px rgba(88, 76, 244, 0.32);
}
.studio-player .studio-transport .pf-play:hover {
  background: linear-gradient(135deg, #584cf4 0%, #4336d6 100%);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(88, 76, 244, 0.4);
}
.studio-player .studio-transport .pf-play svg { width: 21px; height: 21px; }
.studio-player .pf-play-label { display: none; }

.studio-player .pf-playback-options {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.studio-player .pf-playback-options > button,
.studio-player .pf-playback-options .pf-ab-toggle,
.studio-player .pf-volume,
.studio-player .pf-player-settings {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 11px;
  background: #f5f7fc;
  color: var(--pf-secondary);
}
.studio-player .pf-playback-options > button:hover,
.studio-player .pf-playback-options .pf-ab-toggle:hover,
.studio-player .pf-volume:hover,
.studio-player .pf-player-settings:hover {
  background: var(--pf-pressed);
  color: var(--pf-accent);
}
.studio-player .pf-playback-options button[aria-pressed=true] {
  color: var(--pf-accent);
  background: var(--pf-pressed);
  border-color: rgba(88, 76, 244, 0.24);
}
.studio-player .pf-playback-options button > span:not(.pf-cycle-icon):not(.ab-state) { display: none; }
.studio-player .pf-playback-options .pf-rate {
  width: auto;
  min-width: 48px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #f5f7fc;
  border: 1px solid var(--pf-line);
  color: var(--pf-ink);
  font: 600 12.5px/1.3 var(--pf-display);
}
.studio-player .pf-practice { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; border: 0; }
.studio-player .pf-ab-source { display: none !important; }
.studio-player .pf-ab-toggle { position: relative; padding: 5px; }
.studio-player .pf-ab-toggle .ab-icon { width: 24px; height: 24px; }
.studio-player .pf-ab-toggle.is-ready {
  background: var(--pf-pressed);
  color: var(--pf-accent);
  border-color: rgba(88, 76, 244, 0.3);
}

.studio-player .pf-volume-wrap {
  position: relative;
  display: flex;
  padding-left: 6px;
  margin-left: 2px;
  border-left: 1px solid var(--pf-line);
}
.studio-player .pf-volume-panel {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  width: 220px;
  padding: 14px 16px;
  border: 1px solid var(--pf-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(18, 22, 41, 0.12);
  color: var(--pf-secondary);
  font-size: 12px;
}
.studio-player .pf-volume-panel label { grid-column: 1 / -1; font-weight: 600; color: var(--pf-ink); }
.studio-player .pf-volume-panel input { width: 100%; min-width: 0; accent-color: var(--pf-accent); }
.studio-player .pf-volume-panel .pf-mute {
  width: auto;
  min-width: 56px;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f4f6fb;
  font-size: 11.5px;
}

.studio-player .studio-learning-tools {
  display: block;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--pf-line-soft);
}
.studio-player .player-secondary-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.studio-player .player-secondary-toolbar button {
  min-height: 32px;
  width: auto;
  min-width: 0;
  padding: 5px 12px;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--pf-line);
  background: #f7f8fc;
  color: var(--pf-muted);
  font-size: 12px;
  font-weight: 500;
}
.studio-player .player-secondary-toolbar button:hover {
  background: #eef1f9;
  color: var(--pf-ink);
}
.studio-player .player-secondary-toolbar button svg,
.studio-player .player-secondary-toolbar .pf-cycle-icon {
  width: 15px;
  min-width: 15px;
  height: 15px;
}
.studio-player .player-secondary-toolbar button[aria-pressed=true] {
  background: var(--pf-pressed);
  border-color: rgba(88, 76, 244, 0.24);
  color: var(--pf-accent);
  font-weight: 600;
}

.studio-player .pf-ab-status {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--pf-pressed);
  color: var(--pf-accent);
  font-size: 11.5px;
  font-weight: 600;
}
.studio-player .pf-ab-status:empty { display: none; }

/* ---------- Right AI Teaching & Chat Notebook ---------- */
.studio-player .pf-expl-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
  min-height: 60px;
  padding: 0 20px;
  border-bottom: 1px solid var(--pf-line);
  background: linear-gradient(135deg, #f6f4ff 0%, #ffffff 68%);
}
.studio-player .pf-expl-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--pf-ink);
  font-size: 15px;
  font-weight: 700;
}
.studio-player .pf-expl-title svg {
  width: 20px;
  height: 20px;
  color: var(--pf-accent);
}
.player-root.studio-player .pf-expl-close {
  visibility: visible;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: #f4f6fb;
  color: var(--pf-secondary);
}
.studio-player .pf-expl-close svg { width: 16px; height: 16px; }

.player-root.studio-player .pf-expl-box .pf-expl-body {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 22px;
  color: var(--pf-secondary);
  font-size: 14px;
  line-height: 1.82;
  white-space: normal;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
  scrollbar-color: #d8dfee transparent;
  overscroll-behavior: contain;
}
.studio-player .pf-expl-body:has(.pf-expl-empty) {
  display: flex;
  align-items: center;
  justify-content: center;
}
.studio-player .pf-expl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 28px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8f7ff 0%, #fafbfe 100%);
  border: 1px dashed #dfdcf7;
  color: var(--pf-secondary);
  text-align: center;
}
.studio-player .pf-empty-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  color: var(--pf-accent);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(88, 76, 244, 0.1);
}
.studio-player .pf-empty-mark svg { width: 24px; height: 24px; }
.studio-player .pf-expl-empty strong {
  color: var(--pf-ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.studio-player .pf-expl-empty p {
  max-width: 26ch;
  margin: 10px 0 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--pf-muted);
}
.studio-player .pf-expl-empty small {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--pf-line);
  color: var(--pf-accent);
  font-size: 11.5px;
  font-weight: 600;
}

.studio-player .pf-expl-context {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--pf-accent);
  background: var(--pf-pressed);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.studio-player .pf-expl-cue {
  padding: 14px 16px;
  margin: 0 0 18px;
  border: 1px solid var(--pf-line);
  border-left: 3.5px solid var(--pf-accent);
  border-radius: 14px;
  background: #f8f9fd;
  color: var(--pf-ink);
  font-family: var(--pf-display);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.studio-player .teaching-section {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid var(--pf-line);
  border-radius: 16px;
  background: #fcfdff;
}
.studio-player .teaching-section:first-child { margin-top: 0; }
.studio-player .teaching-section h3 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--pf-pressed);
  color: var(--pf-accent);
  font-size: 11.5px;
  font-weight: 700;
}
.studio-player .teaching-section h3::before { display: none; }
.studio-player .teaching-translation {
  margin: 0;
  color: var(--pf-ink);
  font-size: 14.5px;
  line-height: 1.85;
}
.studio-player .teaching-legacy, .studio-player .teaching-grammar p { white-space: pre-wrap; }
.studio-player .teaching-word {
  display: block;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pf-line-soft);
  line-height: 1.75;
}
.studio-player .teaching-word:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.studio-player .teaching-word strong { font-family: var(--pf-display); color: var(--pf-ink); font-size: 14.5px; font-weight: 600; }
.studio-player .teaching-word small { margin-left: 8px; color: var(--pf-muted); font-size: 12px; }
.studio-player .teaching-word span { display: block; margin-top: 4px; color: var(--pf-secondary); font-size: 13.5px; }

.studio-player .teaching-phrase, .studio-player .teaching-grammar {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--pf-line-soft);
}
.studio-player .teaching-phrase:last-child, .studio-player .teaching-grammar:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.studio-player .teaching-phrase strong, .studio-player .teaching-grammar strong {
  display: block;
  color: var(--pf-ink);
  font-size: 13.5px;
  font-weight: 700;
}
.studio-player .teaching-phrase strong { font-family: var(--pf-display); }
.studio-player .teaching-phrase p, .studio-player .teaching-grammar p {
  margin: 6px 0 0;
  color: var(--pf-secondary);
  font-size: 13.5px;
  line-height: 1.85;
}
.studio-player .teaching-example {
  padding-left: 12px;
  border-left: 2.5px solid #d5d0fb;
  font-family: var(--pf-display);
  color: var(--pf-ink);
}
.studio-player .teaching-phrase .teaching-muted {
  margin-top: 2px;
  padding-left: 12px;
  border-left: 2.5px solid #d5d0fb;
  color: var(--pf-muted);
  font-size: 12.5px;
}

.studio-player .pf-expl-loading, .studio-player .pf-expl-status { color: var(--pf-muted); font-size: 13px; }
.studio-player .pf-expl-locked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #f8f7ff;
  border: 1px solid #e6e2fc;
  color: var(--pf-secondary);
  font-size: 13px;
}
.studio-player .pf-expl-cta, .studio-player .pf-expl-retry {
  align-self: flex-start;
  width: auto;
  padding: 9px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--pf-accent);
  font-size: 13px;
  font-weight: 600;
}
.studio-player .pf-expl-cta:hover, .studio-player .pf-expl-retry:hover {
  background: var(--pf-accent-dark);
  color: #ffffff;
}

.studio-player .pf-inspector-toggle { display: none; }
.studio-player.is-inspector-collapsed .player-body {
  grid-template-columns: minmax(0, 1fr) 46px;
}
.player-root.studio-player.is-inspector-collapsed .player-body > .pf-expl-box { display: none; }
.studio-player.is-inspector-collapsed .pf-inspector-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: start;
  grid-column: 2;
  grid-row: 1;
  width: 46px;
  padding: 16px 8px;
  border: 1px solid var(--pf-line);
  border-radius: 16px;
  color: var(--pf-accent);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(18, 22, 41, 0.05);
}
.studio-player.is-inspector-collapsed .pf-inspector-toggle span {
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
}

.studio-player .player-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px 16px 0;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--pf-line);
  color: var(--pf-secondary);
  background: #ffffff;
  font-size: 13px;
}
.studio-player .pf-status-actions { display: flex; gap: 8px; }
.studio-player .pf-status-actions button {
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--pf-pressed);
  color: var(--pf-accent);
  font-size: 12.5px;
  font-weight: 600;
}
.studio-player .pf-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--pf-pressed);
  border-top-color: var(--pf-accent);
  border-radius: 50%;
  animation: pf-spin .8s linear infinite;
}
@keyframes pf-spin { to { transform: rotate(360deg); } }

.player-tooltip {
  position: fixed;
  z-index: 10000;
  max-width: min(300px, calc(100vw - 16px));
  padding: 7px 12px;
  border: 1px solid var(--pf-line);
  border-radius: 10px;
  color: var(--pf-ink);
  background: #ffffff;
  font: 500 12px/1.45 'PingFang SC', sans-serif;
  box-shadow: 0 8px 24px rgba(18, 22, 41, 0.12);
  pointer-events: none;
  text-align: center;
}
.player-tooltip[hidden] { display: none !important; }

/* Settings popover inside player dock */
.studio-player .pf-settings-wrap { position: relative; display: flex; }
.studio-player .pf-settings-panel {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: 48px;
  width: 232px;
  padding: 8px;
  border: 1px solid var(--pf-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(18, 22, 41, 0.12);
  transform-origin: bottom right;
}
.studio-player .pf-settings-panel[hidden] { display: none; }
.studio-player .pf-settings-panel .pf-ai-ball-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--pf-ink);
  font: 600 13px/1.5 'PingFang SC', sans-serif;
  text-align: left;
}
.studio-player .pf-playback-options .pf-settings-wrap .pf-settings-panel .pf-ai-ball-toggle > span { display: block; }
.studio-player .pf-setting-switch {
  position: relative;
  flex: none;
  width: 36px;
  height: 20px;
  border-radius: 99px;
  background: #dde2ef;
  transition: background-color 160ms ease;
}
.studio-player .pf-setting-switch::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(18, 22, 41, 0.18);
  transition: transform 160ms var(--pf-ease);
}
.studio-player .pf-ai-ball-toggle[aria-checked=true] .pf-setting-switch { background: var(--pf-accent); }
.studio-player .pf-ai-ball-toggle[aria-checked=true] .pf-setting-switch::after { transform: translateX(16px); }

/* Immersive & Fullscreen modes */
body.player-immersive { overflow: hidden; }
.player-root.studio-player.is-immersive,
.player-root.studio-player:fullscreen {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  max-width: none;
  height: 100dvh;
  min-height: 0;
  padding: 24px !important;
  background: var(--pf-canvas);
}
.lr-site-app .player-root.studio-player.is-immersive {
  left: var(--lr-rail-width);
  right: 0;
  width: calc(100% - var(--lr-rail-width));
}
.studio-player.is-immersive .player-header { display: none; }
.studio-player.is-immersive .pf-list-scroll {
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  padding: 24px;
}
.studio-player.is-immersive .pf-cue { display: none; flex: none; margin: 10px 0; }
.studio-player.is-immersive .pf-cue.is-immersive-current,
.studio-player.is-immersive .pf-cue.is-context-prev,
.studio-player.is-immersive .pf-cue.is-context-next { display: grid; }
.studio-player.is-immersive .pf-cue.is-context-prev .pf-cue-text,
.studio-player.is-immersive .pf-cue.is-context-next .pf-cue-text {
  color: var(--pf-muted);
  font-size: 19px;
}
.studio-player.is-immersive .pf-cue.is-immersive-current .pf-cue-text {
  font-size: clamp(24px, 2.2vw, 32px);
}
.studio-player.is-immersive .player-media-wrap:has(video) video { max-height: 25dvh; }

/* ---------- Responsive Studio Breakpoints ---------- */
@media(max-width: 1180px) {
  .studio-player .player-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; }
  .studio-player .pf-playback-footer { padding: 14px 16px; }
}

@media(max-width: 920px) {
  .main:has(.studio-player) #content { padding: 14px 16px 24px !important; }
  .player-root.studio-player:not(.is-immersive) { height: auto; min-height: 0; }
  .studio-player:not(.is-immersive) .player-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 14px;
  }
  .studio-player:not(.is-immersive) .player-right {
    height: min(74dvh, 660px);
    min-height: 500px;
  }
  .player-root.studio-player:not(.is-immersive):not(.has-explanation) .player-body > .pf-expl-box {
    height: auto;
  }
  .player-root.studio-player:not(.is-immersive):not(.has-explanation) .pf-expl-empty {
    flex-direction: row;
    text-align: left;
    padding: 16px 18px;
    gap: 14px;
  }
  .player-root.studio-player:not(.is-immersive):not(.has-explanation) .pf-empty-mark {
    margin-bottom: 0;
    width: 42px;
    height: 42px;
  }
  .player-root.studio-player:not(.is-immersive):not(.has-explanation) .pf-expl-empty p {
    margin: 4px 0 0;
    max-width: none;
  }
  .player-root.studio-player:not(.is-immersive):not(.has-explanation) .pf-expl-empty small { display: none; }
  .player-root.studio-player:not(.is-immersive).has-explanation .player-body > .pf-expl-box {
    max-height: 480px;
  }
  .studio-player.is-inspector-collapsed:not(.is-immersive) .player-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-player.is-inspector-collapsed:not(.is-immersive) .pf-inspector-toggle {
    flex-direction: row;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    height: 46px;
    padding: 0 18px;
  }
  .studio-player.is-inspector-collapsed:not(.is-immersive) .pf-inspector-toggle span {
    writing-mode: horizontal-tb;
    letter-spacing: 0.5px;
  }
}

@media(max-width: 760px) {
  .lr-site-app .player-root.studio-player.is-immersive {
    left: 0;
    top: 62px;
    width: 100%;
    height: calc(100dvh - 62px);
  }
}

@media(max-width: 600px) {
  .main:has(.studio-player) #content { padding: 12px 12px 24px !important; }
  .studio-player .player-header {
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 10px 12px;
    padding: 12px 14px;
    border-radius: 18px;
  }
  .studio-player .player-back-btn { grid-column: 1 / -1; grid-row: 1; justify-self: start; min-height: 32px; padding: 5px 12px; font-size: 12px; }
  .studio-player .reference-cover { grid-column: 1; grid-row: 2; width: 46px; height: 46px; border-radius: 12px; }
  .studio-player .player-heading { grid-column: 2; grid-row: 2; }
  .studio-player .pf-head-actions { display: none; }
  .studio-player .player-title { font-size: 16px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .studio-player .pf-list-head { padding: 10px 14px 8px; }
  .studio-player .pf-list-scroll { padding: 12px 12px 14px; }
  .studio-player .pf-cue {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 8px;
    padding: 14px 14px 16px 12px;
  }
  .studio-player .pf-cue-meta {
    position: static;
    grid-column: 2;
    justify-self: end;
    margin-top: 8px;
    opacity: 1;
  }
  .studio-player .pf-cue-text { font-size: 18px; line-height: 1.58; }
  .studio-player .pf-playback-footer { padding: 14px; }
  .studio-player .player-controls { grid-template-columns: 1fr; justify-items: center; gap: 12px; }
  .studio-player .studio-transport { gap: 18px; }
  .studio-player .pf-playback-options { width: 100%; justify-content: center; gap: 6px; }
  .studio-player .player-secondary-toolbar { justify-content: center; gap: 6px; }
  .studio-player .player-secondary-toolbar button { font-size: 11.5px; padding: 5px 10px; }
  .studio-player .pf-volume-panel { right: -40px; }
  .studio-player .pf-settings-panel { right: -60px; }
}

@media(hover: none) {
  .studio-player .pf-cue-meta { opacity: 1; }
}
@media(prefers-reduced-motion: reduce) {
  .studio-player *, .studio-player *::before, .studio-player *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* These modes share the same root in normal, immersive and fullscreen views. */
.player-root[data-subtitles="chinese"] .pf-cue-text{display:none}
.player-root[data-subtitles="chinese"] .pf-cue-translation{font-size:17px;line-height:1.8;color:#202840;font-weight:400;margin-top:0}
.player-root.has-subtitle-blur .pf-cue:not(.is-blur-revealed) .pf-cue-text,.player-root.has-subtitle-blur .pf-cue:not(.is-blur-revealed) .pf-cue-translation{filter:blur(5px);user-select:none}
.player-root.has-subtitle-blur .pf-cue{cursor:pointer}.player-root .pf-subtitle-blur[hidden]{display:none}
.player-root .pf-subtitle-blur[aria-pressed="true"]{color:#5b50d7;background:#eeeaff}
@media(max-width:600px){.player-root[data-subtitles="chinese"] .pf-cue-translation{font-size:16px}}

/* downloads.css */
/* ListenRise download popover — scoped under .lr-downloads-* */

.lr-downloads {
  position: relative;
  display: block;
  padding: 8px 10px 12px;
  font-size: 13px;
  color: #334155;
}

.lr-downloads-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.lr-downloads-trigger:hover,
.lr-downloads-trigger:focus-visible,
.lr-downloads.is-open .lr-downloads-trigger {
  background: #f1f5f9;
}

.lr-downloads-trigger:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

.lr-downloads-icon {
  flex: 0 0 auto;
  color: #64748b;
}

.lr-downloads-trigger-label {
  font-weight: 500;
}

.lr-downloads-panel {
  position: absolute;
  left: calc(100% - 4px);
  bottom: 0;
  z-index: 60;
  width: 320px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 10px 12px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.06);
  color: #334155;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.lr-downloads-panel[hidden] {
  display: none;
}

.lr-downloads.is-open .lr-downloads-panel {
  opacity: 1;
  transform: translateY(0);
}

.lr-downloads-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.lr-downloads-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.lr-downloads-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.lr-downloads-close:hover,
.lr-downloads-close:focus-visible {
  background: #f1f5f9;
  color: #334155;
}

.lr-downloads-close:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 1px;
}

.lr-downloads-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lr-downloads-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "main action"
    "meta meta";
  align-items: center;
  column-gap: 8px;
  padding: 10px 6px;
  border-radius: 8px;
}

.lr-downloads-row:hover {
  background: #f8fafc;
}

.lr-downloads-row-main {
  grid-area: main;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-width: 0;
}

.lr-downloads-platform {
  font-weight: 500;
  color: #1e293b;
}

.lr-downloads-version {
  font-size: 11.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lr-downloads-link {
  grid-area: action;
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  min-height: 36px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 120ms ease;
}

.lr-downloads-link:hover,
.lr-downloads-link:focus-visible {
  background: #e2e8f0;
}

.lr-downloads-link:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

.lr-downloads-unavailable {
  grid-area: meta;
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
  white-space: normal;
}

.lr-downloads-meta {
  grid-area: meta;
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.lr-downloads-status {
  margin: 6px 6px 8px;
  font-size: 12px;
  color: #64748b;
}

.lr-downloads-status[data-kind="error"] {
  color: #b91c1c;
}

.lr-downloads-detail {
  margin: 0 6px 8px;
  font-size: 11px;
  color: #94a3b8;
  word-break: break-word;
}

.lr-downloads-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.lr-downloads-retry {
  padding: 4px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.lr-downloads-retry:hover,
.lr-downloads-retry:focus-visible {
  background: #f1f5f9;
}

.lr-downloads-retry:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

.lr-downloads-updated {
  margin: 0;
  font-size: 10.5px;
  color: #94a3b8;
}

@media (max-width: 720px) {
  .lr-downloads-panel {
    left: 0;
    bottom: calc(100% + 8px);
    width: min(300px, calc(100vw - 24px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .lr-downloads-panel,
  .lr-downloads-trigger,
  .lr-downloads-link {
    transition: none;
  }
}

.sidebar{overflow:visible}.sidebar:after{display:none!important}.lr-downloads-root{margin-top:auto;padding:18px 8px 22px;position:relative}.lr-downloads-root .lr-downloads-panel{z-index:130}.lr-downloads-trigger{width:100%}@media(max-width:760px){.lr-downloads-root{padding:8px;margin-top:0}.lr-downloads-panel{position:fixed!important;left:16px!important;right:16px!important;bottom:78px!important;width:auto!important;max-width:none!important}}

/* redesign-tokens.css */
@font-face {
  font-family: Lexend;
  font-display: swap;
  src: url("/design/Lexend-Regular.ttf");
}
@font-face {
  font-family: Lexend;
  font-display: swap;
  src: url("/design/Lexend-Medium.ttf");
  font-weight: 500;
}
@font-face {
  font-family: Lexend;
  font-display: swap;
  src: url("/design/Lexend-SemiBold.ttf");
  font-weight: 600;
}
:root {
  --color-paper: #f6f7fb;
  --color-surface: #ffffff;
  --color-soft: #eef1f7;
  --color-ink: #121629;
  --color-ink-2: #333b52;
  --color-muted: #646d82;
  --color-subtle: #939bb0;
  --color-rule: #eaeff7;
  --color-accent: #584cf4;
  --color-accent-deep: #4336d6;
  --color-accent-soft: #eeebff;
  --color-focus: #584cf4;
  --color-success: #0e8f6b;
  --color-success-soft: #e5f8f2;
  --color-dark: #121629;
  --color-dark-2: #1f2540;
  --color-on-dark: #ffffff;
  --color-gold: #f59e0b;
  --color-shadow: rgba(18, 22, 41, 0.05);
  --shadow-card: 0 8px 24px rgba(18, 22, 41, 0.045), 0 2px 6px rgba(18, 22, 41, 0.02);
  --shadow-soft: 0 4px 14px rgba(18, 22, 41, 0.04);
  --shadow-float: 0 16px 40px rgba(18, 22, 41, 0.08), 0 3px 10px rgba(18, 22, 41, 0.03);
  --font-body: "PingFang SC", -apple-system, BlinkMacSystemFont, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: Lexend, var(--font-body);
  --font-numeric: Lexend, var(--font-body);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-body: 15px;
  --text-lg: 18px;
  --text-title: 36px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.25, 0.64, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-short: 160ms;
  --dur-medium: 240ms;
}
body, #app {
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
.lr-site-app button:focus:not(:focus-visible), .lr-site-app a:focus:not(:focus-visible) { outline: none; }

/* Unified CEFR Level Badges (A1-C2) matching iOS AppColors.levelPalette */
.lr-level-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2.5px 8.5px;
  border-radius: 999px;
  font-family: var(--font-numeric);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  white-space: nowrap;
  flex: none;
}
.lr-level-pill[data-grade="A1"] { background: #e5f8f2; color: #0e8f6b; }
.lr-level-pill[data-grade="A2"] { background: #e8f2ff; color: #1f6feb; }
.lr-level-pill[data-grade="B1"] { background: #eeebff; color: #584cf4; }
.lr-level-pill[data-grade="B2"] { background: #fff2e2; color: #d96b0c; }
.lr-level-pill[data-grade="C1"] { background: #ffebef; color: #d63649; }
.lr-level-pill[data-grade="C2"] { background: #f4e8ff; color: #7e26d9; }

.lr-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  background: var(--color-soft);
  color: var(--color-muted);
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lr-page-badge {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--color-rule);
  box-shadow: 0 3px 10px rgba(18, 22, 41, 0.05);
  color: var(--color-accent);
  flex: none;
}
.lr-page-badge .icon, .lr-page-badge svg {
  width: 18px;
  height: 18px;
}

/* discovery-redesign.css */
/* Redesigned Web Shell, Discovery, Series Detail & Resource Library (2026-11) */
.lr-site-app {
  width: 100%;
  min-height: 100vh;
  display: block;
  background: var(--color-paper);
  color: var(--color-ink);
}
.lr-site-app > .main {
  width: 100%;
  margin: 0;
  padding: 0 0 64px;
  background: transparent;
}
.lr-site-app[data-page='list'] > .main > #content,
.lr-site-app[data-page='profile'] > .main > #content {
  width: 100%;
  max-width: 1320px;
  padding: 28px 36px 56px;
  margin: 0 auto;
  background: transparent;
}

/* ---------- Frosted Sticky Search Header ---------- */
.lr-site-app .site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(234, 239, 247, 0.92);
  background: rgba(246, 247, 251, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.lr-site-app .site-search-row {
  max-width: 1320px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px !important;
  padding: 14px 36px !important;
}
.lr-site-app .site-header-tagline {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.lr-site-app .site-header-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-soft);
  flex: none;
}
.lr-site-app .site-header-tagline > p {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lr-site-app .site-search {
  width: 380px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(18, 22, 41, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.lr-site-app .site-search > span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--color-muted);
}
.lr-site-app .site-search svg { width: 17px; height: 17px; position: static; }
.lr-site-app .site-search #search {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 40px;
  border: 0;
  padding: 0;
  border-radius: 0;
  font-size: 13px;
  background: transparent;
  box-shadow: none;
  color: var(--color-ink);
  outline: 0;
}
.lr-site-app .site-search:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(88, 76, 244, 0.12), 0 6px 18px rgba(18, 22, 41, 0.05);
}
.lr-site-app .site-search:focus-within > span { color: var(--color-accent); }
.lr-site-app .site-search #search::placeholder { color: #939bb0; }

.lr-site-app[data-page='play'] .site-header { display: none; }
.lr-site-app[data-page='play'] .platform-download-dock#downloads-root { display: none; }

/* ---------- Brand Glyph & Page Headings ---------- */
.brand-glyph {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #6b5ff8 0%, #584cf4 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(88, 76, 244, 0.28);
  flex: none;
}
.brand-glyph svg { width: 19px; height: 19px; }

.lr-site-app .page-title-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.lr-site-app .page-title-lockup > h1 {
  margin: 0;
  min-width: 0;
  color: var(--color-ink);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.7px;
}

.rd-page { min-width: 0; }
.rd-page .rd-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
}
.rd-subtitle {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--color-muted);
  line-height: 1.6;
}
.rd-learning-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--color-rule);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink-2);
  white-space: nowrap;
  transition: transform 150ms ease, border-color 150ms ease, color 150ms ease;
}
.rd-learning-link:hover {
  border-color: rgba(88, 76, 244, 0.3);
  color: var(--color-accent);
  transform: translateY(-1px);
}
.rd-learning-link .icon { width: 16px; height: 16px; }
.rd-learning-link .icon:last-child { width: 14px; height: 14px; opacity: 0.7; }

/* ---------- Continue Learning Shelf ---------- */
.rd-recent { margin-bottom: 24px; }
.rd-recent .rd-section-heading { margin-bottom: 14px; }
.rd-recent-heading-left { display: flex; align-items: center; gap: 8px; }
.rd-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.rd-recent .rd-section-heading h2 { font-size: 18px; font-weight: 700; margin: 0; }

.rd-text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background-color 150ms ease, color 150ms ease;
}
.rd-text-button:hover { color: var(--color-accent); background: var(--color-accent-soft); }
.rd-text-button .icon { width: 15px; height: 15px; }

.rd-recent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.rd-recent-card {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 55%);
  border: 1px solid var(--color-rule);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  text-align: left;
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease, border-color 180ms ease;
}
.rd-recent-card:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 76, 244, 0.25);
  box-shadow: var(--shadow-card);
}
.rd-recent-cover {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex: none;
  aspect-ratio: 1;
  box-shadow: 0 6px 16px rgba(18, 22, 41, 0.1);
}
.rd-recent-copy { min-width: 0; flex: 1; display: block; }
.rd-recent-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 700;
}
.rd-recent-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}
.rd-recent-copy > strong {
  display: block;
  font-size: 15.5px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--color-ink);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rd-recent-series {
  display: block;
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rd-position { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.rd-position > i {
  display: block;
  width: 96px;
  height: 5px;
  background: #e6e3fb;
  border-radius: 99px;
  overflow: hidden;
}
.rd-position b { display: block; height: 100%; background: var(--color-accent); border-radius: 99px; }
.rd-position > small { font-family: var(--font-numeric); font-size: 11px; font-weight: 600; color: var(--color-muted); }
.rd-recent-reading { display: block; margin-top: 8px; color: var(--color-accent); font-size: 12px; font-weight: 600; }

.rd-resume-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6b5ff8 0%, #584cf4 100%);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(88, 76, 244, 0.25);
  flex-shrink: 0;
}
.rd-resume-icon .icon { width: 17px; height: 17px; }
.rd-recent-empty {
  padding: 20px 24px;
  border: 1px dashed #d8dcef;
  background: #ffffff;
  border-radius: 20px;
  color: var(--color-muted);
  font-size: 13px;
}

/* ---------- Import Notice Banner ---------- */
.rd-import-notice {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border: 1px solid #ece8fd;
  background: linear-gradient(135deg, #fff8ee 0%, #f5f1ff 52%, #eee9fe 100%);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  color: var(--color-ink);
}
.rd-import-notice--home { margin: 22px 0 0; }
.rd-import-notice--section { margin: 0 0 24px; }
.rd-import-notice--library { margin: 0 0 22px; }
.rd-import-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  background: #ffffff;
  color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(88, 76, 244, 0.12);
}
.rd-import-mark .icon { width: 22px; height: 22px; }
.rd-import-copy { flex: 1; min-width: 0; }
.rd-import-copy strong {
  display: block;
  color: var(--color-ink);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}
.rd-import-copy p {
  margin: 3px 0 0;
  color: var(--color-muted);
  font-size: 12.5px;
  line-height: 1.65;
}
.rd-import-notice .rd-import-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 18px;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #6b5ff8 0%, #584cf4 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(88, 76, 244, 0.25);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.rd-import-download .icon { width: 15px; height: 15px; }
.rd-import-notice .rd-import-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(88, 76, 244, 0.34);
}

/* ---------- Discovery Channel Sections ---------- */
.rd-section {
  margin-top: 28px;
  padding: 26px 28px 30px;
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
}
.rd-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.rd-section-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rd-section-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  flex: none;
}
.rd-section-icon[data-kind="video"] { background: #e8f2ff; color: #1f6feb; }
.rd-section-icon[data-kind="reading"] { background: #e5f8f2; color: #0e8f6b; }
.rd-section-icon .icon { width: 20px; height: 20px; }

.rd-section-heading h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.4px;
}
.rd-section-heading p {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-muted);
}
.rd-section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.rd-expand-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-rule);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: 12.5px;
  font-weight: 600;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.rd-expand-pill:hover {
  background: var(--color-accent-soft);
  border-color: rgba(88, 76, 244, 0.24);
  color: var(--color-accent);
}
.rd-expand-pill .icon { width: 14px; height: 14px; }

/* ---------- Filter Pills ---------- */
.rd-filters {
  margin-bottom: 22px;
  padding: 14px 16px;
  background: var(--color-paper);
  border-radius: 18px;
}
.rd-filter-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.rd-filter-row + .rd-filter-row { margin-top: 10px; }
.rd-filter-row > span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 32px;
  flex-shrink: 0;
}
.rd-filter-options { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-filter-chip {
  color: var(--color-ink-2);
  background: #ffffff;
  min-height: 32px;
  border: 1px solid var(--color-rule);
  border-radius: 999px;
  padding: 5px 13px;
  line-height: 18px;
  font-size: 12px;
  font-weight: 600;
  transition: all 150ms ease;
}
.rd-filter-chip:hover {
  border-color: rgba(88, 76, 244, 0.3);
  color: var(--color-accent);
}
.rd-filter-chip.is-selected {
  color: #ffffff;
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(88, 76, 244, 0.24);
}
.rd-levels .rd-filter-chip { font-family: var(--font-numeric); }
.rd-levels .rd-filter-chip:first-child { font-family: var(--font-body); }

/* ---------- Series Cards Grid ---------- */
.rd-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 18px;
}
.rd-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  text-align: left;
  border-radius: 18px;
  padding: 0;
  background: transparent;
  transition: transform 200ms var(--ease-out);
}
.rd-card:hover { transform: translateY(-3px); }
.rd-card > .rd-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 16px;
  border: 1px solid rgba(18, 22, 41, 0.05);
  box-shadow: 0 8px 20px rgba(18, 22, 41, 0.08);
  transition: box-shadow 200ms ease;
}
.rd-card:hover > .rd-cover {
  box-shadow: 0 14px 28px rgba(18, 22, 41, 0.13);
}
.rd-card-copy {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 10px 2px 0;
}
.rd-card-copy > strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-display);
  color: var(--color-ink);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.2px;
  min-height: calc(14px * 1.4 * 2);
}
.rd-card-detail {
  display: block;
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 4px;
}
.rd-card-badges, .card-badges {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 8px;
  min-width: 0;
}
.rd-card-badges { flex-wrap: wrap; }
.rd-card-badges > .lr-tag-pill { max-width: 100%; flex: 0 1 auto; }

.rd-grid-video { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.rd-video-card > .rd-cover { aspect-ratio: 16 / 9; border-radius: 18px; }
.rd-video-card .rd-card-copy > strong { min-height: 0; font-size: 15px; }

.rd-grid-reading { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rd-book-card {
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: 20px;
}
.rd-book-card:hover {
  background: #ffffff;
  border-color: rgba(88, 76, 244, 0.25);
  box-shadow: var(--shadow-soft);
}
.rd-book-art {
  display: block;
  width: 72px;
  height: 104px;
  aspect-ratio: 2 / 3;
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(18, 22, 41, 0.1);
}
.rd-book-card .rd-card-copy { flex: 1; width: auto; padding: 0; }
.rd-book-card .rd-card-copy > strong {
  font-family: var(--font-body);
  font-size: 16.5px;
  min-height: 0;
}
.rd-card-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-muted);
  margin-left: auto;
  flex: none;
}
.rd-book-card:hover .rd-card-arrow { background: var(--color-accent-soft); color: var(--color-accent); }
.rd-card-arrow .icon { width: 16px; height: 16px; }

.rd-empty {
  text-align: center;
  padding: 36px 20px;
  background: var(--color-paper);
  border-radius: 18px;
  color: var(--color-muted);
}
.rd-empty h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--color-ink); }
.rd-empty p { margin: 8px 0 0; font-size: 13px; }
.rd-empty-actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.rd-secondary {
  min-height: 36px;
  border: 1px solid var(--color-rule);
  border-radius: 999px;
  background: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 16px;
}

/* ---------- Series Detail Page (2-Stage Hero Card + Elevated Episode Cards) ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 15px 7px 11px !important;
  margin-bottom: 18px !important;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--color-rule);
  box-shadow: var(--shadow-soft);
  color: var(--color-ink) !important;
  font-size: 13px !important;
  font-weight: 600;
  transition: all 150ms ease;
}
.back-link:hover {
  background: var(--color-accent-soft);
  border-color: rgba(88, 76, 244, 0.25);
  color: var(--color-accent) !important;
}
.back-link svg { width: 16px; height: 16px; }

.series-hero-card {
  padding: 26px 28px 22px;
  margin-bottom: 28px;
  background: linear-gradient(145deg, #f6f4ff 0%, #ffffff 48%, #ffffff 100%);
  border: 1px solid var(--color-rule);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
}
.series-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.series-hero-card .series-art {
  width: 118px;
  height: 118px;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(18, 22, 41, 0.12);
  border: 2px solid #ffffff;
  flex: none;
}
.series-hero-card .series-art.book-art {
  width: 96px;
  height: 138px;
  border-radius: 14px;
}
.series-hero-copy { flex: 1; min-width: 0; }
.series-hero-copy h1 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.5px;
  color: var(--color-ink);
}
.series-hero-copy .series-description {
  margin: 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--color-muted);
}

.series-hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-rule);
}
.series-hero-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.series-episode-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
  margin-left: 4px;
}
.series-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.lr-follow-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #6b5ff8 0%, #584cf4 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(88, 76, 244, 0.25);
  transition: all 160ms ease;
}
.lr-follow-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(88, 76, 244, 0.34);
}
.lr-follow-pill.is-followed {
  background: var(--color-accent-soft);
  border-color: rgba(88, 76, 244, 0.26);
  color: var(--color-accent);
  box-shadow: none;
}
.lr-follow-pill svg { width: 16px; height: 16px; }

.lr-series-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--color-rule);
  background: #ffffff;
  color: var(--color-ink);
  font-size: 13.5px;
  font-weight: 700;
  transition: all 150ms ease;
}
.lr-series-read-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.lr-series-read-btn svg { width: 16px; height: 16px; color: var(--color-accent); }

.lr-series-list-head { margin-bottom: 14px !important; }
.lr-accent-heading { display: flex; align-items: center; gap: 9px; }
.lr-accent-heading::before {
  content: '';
  width: 4px;
  height: 18px;
  border-radius: 99px;
  background: var(--color-accent);
}

.episode-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.episode-row.episode-card {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 0 16px 0 20px !important;
  border: 1px solid var(--color-rule) !important;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  gap: 12px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.episode-row.episode-card:hover {
  transform: translateY(-1px);
  border-color: rgba(88, 76, 244, 0.26) !important;
  box-shadow: var(--shadow-card);
  background: #ffffff;
}
.episode-card .episode-open {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  padding: 16px 0 !important;
  text-decoration: none;
  color: inherit;
}
.episode-index {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--color-paper);
  color: var(--color-muted);
  font-family: var(--font-numeric);
  font-size: 12px;
  font-weight: 700;
  width: auto !important;
}
.episode-row.episode-card:hover .episode-index {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.episode-copy strong {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: var(--color-ink);
  line-height: 1.38;
}
.episode-copy .muted {
  font-size: 12.5px !important;
  color: var(--color-muted);
}
.episode-duration {
  font-family: var(--font-numeric);
  font-size: 12.5px !important;
  font-weight: 500;
  color: var(--color-muted) !important;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-paper);
}
.episode-play {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50%;
  background: linear-gradient(135deg, #6b5ff8 0%, #584cf4 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 5px 14px rgba(88, 76, 244, 0.25);
  flex: none;
}

/* ---------- Resource Library, Segmented Tabs & Wordbook Cards ---------- */
.lr-library-count {
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--color-rule);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
}

.lr-segmented-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  margin-bottom: 18px;
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.lr-seg-tab {
  min-height: 36px;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.lr-seg-tab:hover { color: var(--color-ink); }
.lr-seg-tab.selected {
  background: linear-gradient(135deg, #6b5ff8 0%, #584cf4 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(88, 76, 244, 0.25);
}

.lr-library-filters {
  gap: 8px !important;
  margin-bottom: 24px !important;
}
.lr-library-filters .chip {
  min-height: 34px;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  border: 1px solid var(--color-rule) !important;
  background: #ffffff !important;
  color: var(--color-ink-2);
  font-size: 12.5px !important;
  font-weight: 600;
  transition: all 150ms ease;
}
.lr-library-filters .chip.selected {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(88, 76, 244, 0.22);
}
.lr-library-filters select {
  min-height: 36px;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  border: 1px solid var(--color-rule) !important;
  background: #ffffff !important;
  font-weight: 600;
}

.cards > .card {
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease;
}
.cards > .card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.cards > .card .card-cover { border-radius: 14px; }
.cards > .card .card-title { font-size: 14px; font-weight: 700; color: var(--color-ink); }

.lr-wordbook-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.lr-note-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.learning-record {
  padding: 20px 22px !important;
  margin: 0 !important;
  border: 1px solid var(--color-rule) !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.learning-record-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.learning-record-head h3 {
  flex: 1;
  margin: 0 !important;
  font-family: var(--font-display);
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--color-ink) !important;
}
.learning-record--note .learning-record-head h3 { font-size: 16px !important; }
.lr-mastery-pill {
  padding: 2.5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--color-soft);
  color: var(--color-muted);
}
.lr-mastery-pill.is-learned {
  background: var(--color-success-soft);
  color: var(--color-success);
}
.learning-record-phonetic {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 10px;
}
.learning-record-meaning {
  margin: 0 0 16px !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
  color: var(--color-ink-2) !important;
  flex: 1;
}
.learning-record-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.lr-record-btn {
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-rule);
  background: var(--color-paper);
  color: var(--color-ink-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}
.lr-record-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.lr-record-btn.is-primary {
  background: var(--color-accent-soft);
  border-color: transparent;
  color: var(--color-accent);
}

/* ---------- Empty / Loading States ---------- */
.empty, .error-state {
  min-height: 280px;
  padding: 36px 24px;
  background: #ffffff;
  border: 1px solid var(--color-rule);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

/* ---------- Responsive Discovery & Library ---------- */
@media(max-width: 1150px) {
  .lr-site-app[data-page='list'] > .main > #content,
  .lr-site-app[data-page='profile'] > .main > #content { padding-left: 24px; padding-right: 24px; }
  .lr-site-app .site-search-row { padding-left: 24px !important; padding-right: 24px !important; }
  .rd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rd-grid-video { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media(max-width: 860px) {
  .rd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rd-grid-reading, .rd-recent-grid, .lr-wordbook-grid { grid-template-columns: 1fr; }
  .lr-segmented-tabs { border-radius: 20px; width: 100%; }
}

@media(max-width: 640px) {
  .lr-site-app[data-page='list'] > .main > #content,
  .lr-site-app[data-page='profile'] > .main > #content { padding: 20px 16px 40px; }
  .lr-site-app .site-search-row { padding: 12px 16px !important; min-height: 60px !important; }
  .lr-site-app .site-header-tagline { display: none; }
  .lr-site-app .site-search { width: 100%; }
  .rd-page .rd-heading { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
  .lr-site-app .page-title-lockup > h1 { font-size: 24px; }
  .rd-section { padding: 20px 16px 22px; border-radius: 22px; }
  .rd-section > .rd-section-heading { flex-direction: column; align-items: stretch; gap: 12px; }
  .rd-section > .rd-section-heading .rd-section-actions { justify-content: space-between; }
  .rd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .rd-grid-video { grid-template-columns: 1fr; }
  .rd-book-card { padding: 12px; gap: 12px; }
  .rd-book-art { width: 56px; height: 80px; }
  .rd-book-card .rd-card-arrow { width: 28px; height: 28px; }
  .rd-import-notice { flex-direction: column; align-items: flex-start; padding: 18px; }
  .rd-import-notice .rd-import-download { width: 100%; }
  .series-hero-card { padding: 20px 18px; border-radius: 22px; }
  .series-hero-top { gap: 16px; }
  .series-hero-card .series-art { width: 88px; height: 88px; border-radius: 18px; }
  .series-hero-copy h1 { font-size: 20px; }
  .series-hero-footer { flex-direction: column; align-items: stretch; }
  .series-hero-actions { margin-left: 0; }
  .series-hero-actions > button { flex: 1; }
  .episode-row.episode-card { padding: 0 12px 0 14px !important; }
}

/* Learning content first: one clear section, expandable filters and a compact series header. */
.rd-page .rd-heading{margin-bottom:20px;align-items:center}
.rd-page .page-title-lockup h1{font-size:27px;line-height:1.3;font-weight:600;letter-spacing:-.025em}
.rd-page .page-title-lockup>.lr-page-badge{display:none}
.rd-page .rd-subtitle{font-size:13px;line-height:1.6;margin-top:8px}
.rd-page .rd-learning-link{padding:9px 12px;box-shadow:none;background:transparent;border:0}
.rd-kind-links{display:flex;gap:10px;margin:0 0 28px}
.rd-kind-links button{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--lr-line,#e5eaf3);border-radius:11px;padding:11px 16px;min-height:44px;color:var(--lr-ink,#121629);font:inherit;font-size:13px}
.rd-kind-links button>.icon:first-child{color:#6155e9}.rd-kind-links button>.icon:last-child{width:13px;color:#8a91a2;margin-left:14px}
.rd-content-sections{gap:34px!important;margin-top:0!important}
.rd-section{padding:0!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important}
.rd-section-heading{margin-bottom:14px;align-items:center}
.rd-section-title-group h2{font-size:21px;font-weight:600;letter-spacing:-.02em}.rd-section-title-group p{font-size:12px;margin-top:5px}
.rd-section-icon{width:36px;height:36px;border-radius:10px}.rd-section-icon .icon{width:19px;height:19px}
.rd-section-actions{gap:12px}.rd-section-count{font-size:12px}
.rd-filters{padding:0!important;background:transparent!important;border-top:1px solid #e4e7ef;border-bottom:1px solid #e4e7ef;border-radius:0!important;margin:0 0 18px!important}
.rd-filters>summary{display:flex;align-items:center;gap:12px;min-height:46px;cursor:pointer;list-style:none;font-size:12px;color:#566079}
.rd-filters>summary::-webkit-details-marker{display:none}.rd-filters>summary>span:first-child{display:flex;align-items:center;gap:8px;color:#242c43;font-weight:500}
.rd-filters>summary .icon{width:16px;height:16px}.rd-filters>summary>.icon{margin-left:auto;transform:rotate(90deg);transition:transform .16s ease}
.rd-filters[open]>summary>.icon{transform:rotate(-90deg)}.rd-filter-summary{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.rd-filter-body{padding:0 0 14px}.rd-filter-row+.rd-filter-row{margin-top:10px}.rd-filter-chip{min-height:36px!important}
.rd-card-copy>strong{font-weight:500!important;line-height:1.5!important;font-size:14px!important}
.rd-card-badges{flex-wrap:wrap}.rd-page .rd-grid{gap:22px 18px}.rd-cover{border-radius:12px}
.rd-page .rd-import-notice{margin:36px 0 0;padding:18px 0;background:transparent;border:0;border-top:1px solid #e4e7ef;border-radius:0;box-shadow:none;gap:16px}
.rd-page .rd-import-mark{display:none}.rd-page .rd-import-copy strong{font-size:13px;font-weight:500}.rd-page .rd-import-copy p{font-size:12px;line-height:1.6}.rd-page .rd-import-download{box-shadow:none;background:transparent;color:#5b50d7;border:1px solid #dcd8f8}
.series-hero-card.series-compact{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:4px 0 22px!important;margin-bottom:12px!important;border-bottom:1px solid #e4e7ef!important}
.series-compact .series-hero-top{align-items:start;gap:22px}.series-compact .series-art{width:120px;height:120px;flex:0 0 120px;border-radius:14px;box-shadow:none}
.series-compact .series-hero-copy{min-width:0}.series-compact .series-hero-copy h1{font-size:28px;line-height:1.3;font-weight:600;letter-spacing:-.025em;margin:0 0 13px}
.series-compact .series-hero-badges{gap:8px;margin:0 0 14px;flex-wrap:wrap}.series-compact .series-hero-actions{justify-content:flex-start}.series-compact .lr-follow-pill{min-width:0;min-height:40px;padding:8px 16px;border:1px solid #dcd8f8;border-radius:9px;background:#fff;color:#5b50d7;box-shadow:none;font-size:13px;flex:none;width:auto}
.series-description-details{margin-top:18px}.series-description-details summary{cursor:pointer;font-size:12px;color:#5c6478;padding:5px 0;min-height:34px}.series-description-details .series-description{max-width:80ch;font-size:14px;line-height:1.8;margin:10px 0 0}
.rd-kind-links button:focus-visible,.rd-filters summary:focus-visible,.series-description-details summary:focus-visible{outline:2px solid #6355e9;outline-offset:4px}
@media(max-width:700px){.rd-page .rd-heading{margin-bottom:16px}.rd-page .page-title-lockup h1{font-size:24px}.rd-page .rd-subtitle{font-size:12px;margin-top:6px}.rd-page .rd-learning-link{display:none}.rd-kind-links{gap:8px;margin-bottom:24px}.rd-kind-links button{flex:1;justify-content:center;gap:6px;padding:10px 6px;font-size:12px}.rd-kind-links button>.icon:last-child{display:none}.rd-section-title-group h2{font-size:20px}.rd-section-title-group p{display:none}.rd-section-heading{flex-wrap:nowrap;gap:12px;margin-bottom:12px}.rd-section-actions{gap:8px}.rd-section-count{display:none}.rd-section-icon{width:32px;height:32px;flex:0 0 32px}.rd-expand-pill{font-size:11px;padding:8px 10px;min-height:40px}.rd-page .rd-grid{gap:22px 14px}.rd-card-copy>strong{font-size:13px!important}.rd-filters>summary{min-height:44px}.rd-filter-body{padding-bottom:12px}.rd-filter-row{gap:10px}.rd-page .rd-import-notice{display:flex;flex-direction:row;align-items:center;gap:14px}.rd-page .rd-import-copy p{display:none}.rd-page .rd-import-download{width:auto;flex:none;font-size:11px;padding:8px 12px}.rd-page .rd-import-download .icon{display:none}.series-compact .series-hero-top{gap:16px}.series-compact .series-art{width:86px;height:86px;flex-basis:86px;border-radius:11px}.series-compact .series-hero-copy h1{font-size:21px;line-height:1.35;margin-bottom:10px}.series-compact .series-hero-actions{width:auto;margin-top:8px}.series-compact .lr-follow-pill{min-height:38px;padding:7px 13px}.series-compact .series-hero-badges{gap:6px;margin-bottom:8px;font-size:11px}.series-description-details{margin-top:12px}}
@media(prefers-reduced-motion:reduce){.rd-filters>summary>.icon{transition:none}}

/* member-profile-redesign.css */
@font-face{font-family:LRLexend;src:url('/design/Lexend-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:LRLexend;src:url('/design/Lexend-SemiBold.ttf') format('truetype');font-weight:600;font-display:swap}
#notice .lr-member-page,.lr-profile-page{--lr-paper:#f8f7fa;--lr-surface:#fff;--lr-soft:#f2eff6;--lr-ink:#29272e;--lr-ink-2:#55515e;--lr-muted:#77727f;--lr-rule:#e7e3ec;--lr-accent:#8051c5;--lr-accent-soft:#f0eafa;--lr-success:#39745e;--lr-success-soft:#eff7f2;color:var(--lr-ink);font-family:'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;line-height:1.6;font-size:14px;box-sizing:border-box}
#notice .lr-member-page *,.lr-profile-page *{box-sizing:border-box}
#notice .lr-member-page :is(p,h1,h2,h3),.lr-profile-page :is(p,h1,h2,h3){margin:0}
#notice .lr-member-page :is(button,a),.lr-profile-page :is(button,a){font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
#notice .lr-member-page button,.lr-profile-page button{border:0;background:none}
#notice .lr-member-page :is(button,a):focus-visible,.lr-profile-page :is(button,a):focus-visible{outline:2px solid var(--lr-accent);outline-offset:4px}
#notice .lr-member-page button:disabled,.lr-profile-page button:disabled{cursor:wait;opacity:.6}
#notice .lr-member-page [hidden],.lr-profile-page [hidden]{display:none!important}
#notice .lr-member-page .icon,.lr-profile-page .icon{width:18px;height:18px;flex:none}
#notice .lr-member-page .lr-eyebrow,.lr-profile-page .lr-eyebrow{font-size:11px;letter-spacing:1.2px;color:var(--lr-muted);margin:0 0 12px}
#notice .lr-member-page .lr-primary,.lr-profile-page .lr-primary{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 24px;gap:12px;border:1px solid var(--lr-ink);border-radius:9px;background:var(--lr-ink);color:#fff;font-size:14px;font-weight:600;white-space:nowrap;transition:background-color 160ms ease,transform 160ms ease}
#notice .lr-member-page .lr-primary:active,.lr-profile-page .lr-primary:active{transform:scale(.98)}
#notice .lr-member-page .lr-text-button,.lr-profile-page .lr-text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 0;font-size:12px;background:none;color:var(--lr-ink-2)}
.lr-profile-page .lr-icon-button{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--lr-rule);border-radius:50%;background:var(--lr-surface);flex:none}
#notice:has(.lr-member-page){width:min(1248px,calc(100vw - 48px));max-width:1248px;max-height:calc(100dvh - 40px);padding:0;background:#f8f7fa;border:1px solid #e7e3ec;border-radius:20px;overflow:hidden;color:#29272e}
#notice[open]:has(.lr-member-page){display:flex;flex-direction:column}
#notice:has(.lr-member-page) .notice-form{margin:0;padding:0;flex:none}
#notice:has(.lr-member-page) .notice-title{display:none}
#notice:has(.lr-member-page) .notice-actions{position:absolute;top:17px;right:17px;margin:0;padding:0;z-index:30}
#notice:has(.lr-member-page) .notice-close{width:40px;height:40px;min-width:40px;display:grid;place-items:center;border:1px solid #e7e3ec;border-radius:50%;background:rgba(255,255,255,.94)!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 4px 14px rgba(41,39,46,.08);color:#55515e!important;padding:0}
#notice .notice-content.lr-member-page{flex:1 1 auto;min-height:0;white-space:normal;max-height:calc(100dvh - 42px)!important;overflow-y:auto!important;overscroll-behavior:contain;text-align:left;padding:36px 44px 30px}
#notice .lr-member-page .lr-member-status{position:relative;padding:13px 17px;background:var(--lr-soft);border-radius:10px;margin:0 0 24px;font-size:13px}
#notice .lr-member-page .lr-member-status.is-active{background:var(--lr-success-soft);color:var(--lr-success)}
#notice .lr-member-page .lr-member-status strong{font-weight:600}
#notice .lr-member-page .lr-member-status p{margin-top:3px;font-size:12px;overflow-wrap:anywhere}
#notice .lr-member-page .lr-member-status .lr-text-button{position:absolute;right:17px;top:12px;color:var(--lr-accent);padding:0}
#notice .lr-member-page .lr-member-status:has(button){padding-right:115px}
#notice .lr-member-page .lr-member-hero{display:grid;grid-template-columns:1.02fr .98fr;gap:56px;align-items:center;min-height:278px}
#notice .lr-member-page .lr-member-hero h1{font-size:clamp(30px,3.1vw,44px);font-weight:600;line-height:1.4;letter-spacing:-1.6px;text-wrap:balance}
#notice .lr-member-page .lr-member-hero h1 span{color:var(--lr-muted)}
#notice .lr-member-page .lr-member-hero .lr-member-intro{font-size:14px;color:var(--lr-muted);line-height:1.9;margin-top:18px;max-width:390px}
#notice .lr-member-page .lr-member-perks{display:flex;gap:18px;margin-top:24px;font-size:12px;color:var(--lr-ink-2);flex-wrap:wrap}
#notice .lr-member-page .lr-member-perks span{display:flex;gap:6px;align-items:center}
#notice .lr-member-page .lr-member-perks .icon{width:15px;height:15px}
#notice .lr-member-page .lr-cover-shelf{height:288px;position:relative;isolation:isolate}
#notice .lr-member-page .lr-cover-shelf:before{content:'';position:absolute;inset:28px 0 5px;background:var(--lr-accent-soft);border-radius:50%;opacity:.65;z-index:-1}
#notice .lr-member-page .lr-cover-shelf>img{position:absolute;width:142px;height:142px;object-fit:cover;border-radius:19px;box-shadow:0 15px 26px #30253821;border:4px solid #fff}
#notice .lr-member-page .lr-cover-shelf>img:nth-child(1){left:2%;top:69px;transform:rotate(-13deg);width:129px;height:129px}
#notice .lr-member-page .lr-cover-shelf>img:nth-child(2){left:24%;top:14px;transform:rotate(-7deg);z-index:1}
#notice .lr-member-page .lr-cover-shelf>img:nth-child(3){right:7%;top:37px;transform:rotate(10deg);width:151px;height:151px}
#notice .lr-member-page .lr-cover-shelf>img:nth-child(4){left:25%;top:150px;transform:rotate(5deg);width:122px;height:122px;z-index:3}
#notice .lr-member-page .lr-cover-shelf>img:nth-child(5){right:5%;top:184px;transform:rotate(-6deg);width:104px;height:104px;z-index:3}
#notice .lr-member-page .lr-cover-shelf>p{position:absolute;bottom:4px;left:-8px;font-size:11px;line-height:1.9;color:var(--lr-muted);max-width:110px}
#notice .lr-member-page .lr-member-content{display:grid;grid-template-columns:.95fr 1.05fr;gap:28px;margin:40px 0 32px}
#notice .lr-member-page .lr-member-benefits{padding:15px 28px 0 0}
#notice .lr-member-page .lr-member-benefits h2{font-size:23px;line-height:1.6;letter-spacing:-.5px;font-weight:600}
#notice .lr-member-page .lr-member-benefits>p{margin:11px 0 20px;font-size:13px;line-height:1.8;color:var(--lr-muted)}
#notice .lr-member-page .lr-benefit-line{display:flex;gap:14px;padding:13px 0;border-top:1px solid var(--lr-rule);align-items:center}
#notice .lr-member-page .lr-benefit-line>span{height:36px;width:36px;border:1px solid var(--lr-rule);border-radius:9px;display:grid;place-items:center;background:var(--lr-surface);flex:none}
#notice .lr-member-page .lr-benefit-line strong{font-size:13px;display:block;font-weight:600}
#notice .lr-member-page .lr-benefit-line small{display:block;font-size:12px;color:var(--lr-muted);margin-top:4px}
#notice .lr-member-page .lr-lesson-example{background:var(--lr-surface);border:1px solid var(--lr-rule);border-radius:16px;padding:26px 28px;box-shadow:0 5px 24px #28212d07}
#notice .lr-member-page .lr-lesson-example .lr-lesson-label{font-size:11px;color:var(--lr-muted);display:flex;align-items:center;gap:6px;margin-bottom:17px}
#notice .lr-member-page .lr-lesson-label .icon{width:13px;height:13px}
#notice .lr-member-page .lr-lesson-example .lr-example-en{font-family:LRLexend,sans-serif;font-size:23px;line-height:1.55;letter-spacing:-.6px;max-width:400px}
#notice .lr-member-page .lr-example-en mark{background:none;color:var(--lr-accent)}
#notice .lr-member-page .lr-lesson-example .lr-example-zh{font-size:12px;color:var(--lr-muted);margin-top:9px}
#notice .lr-member-page .lr-example-detail{margin-top:20px;display:grid;grid-template-columns:1fr 1.7fr;gap:18px;border-top:1px solid var(--lr-rule);padding-top:16px}
#notice .lr-member-page .lr-example-detail small{font-size:11px;color:var(--lr-muted);display:block;margin-bottom:7px}
#notice .lr-member-page .lr-example-detail strong{font-family:LRLexend,sans-serif;font-size:12px;font-weight:400;overflow-wrap:anywhere}
#notice .lr-member-page .lr-example-detail strong span{color:var(--lr-muted)}
#notice .lr-member-page .lr-example-detail p{font-size:12px;color:var(--lr-muted);margin-top:5px}
#notice .lr-member-page .lr-lesson-example .lr-example-grammar{border-top:1px solid var(--lr-rule);padding-top:12px;margin-top:16px;font-size:12px;color:var(--lr-muted);line-height:1.8}
#notice .lr-member-page .lr-example-grammar b{font-weight:600;margin-right:9px;color:var(--lr-ink-2)}
#notice .lr-member-page .lr-plans-heading{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:18px;gap:16px}
#notice .lr-member-page .lr-plans-heading h2{font-size:18px;font-weight:600}
#notice .lr-member-page .lr-plans-heading p{font-size:12px;color:var(--lr-muted)}
#notice .lr-member-page .lr-member-plans{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#notice .lr-member-page .lr-member-plan{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:22px 22px 18px;background:var(--lr-surface);border:1px solid var(--lr-rule);border-radius:12px;min-height:145px;transition:background-color 160ms ease,color 160ms ease,border-color 160ms ease}
#notice .lr-member-page .lr-member-plan[aria-pressed=true]{background:var(--lr-ink);border-color:var(--lr-ink);color:#fff}
#notice .lr-member-page .lr-plan-name{font-size:13px;font-weight:600}
#notice .lr-member-page .lr-plan-price{font-family:LRLexend,sans-serif;display:flex;align-items:baseline;gap:2px;margin-top:12px}
#notice .lr-member-page .lr-plan-price strong{font-size:29px;font-weight:400;letter-spacing:-1px;line-height:1.3}
#notice .lr-member-page .lr-plan-price small{font-size:12px}
#notice .lr-member-page .lr-plan-period{font-size:11px;margin-top:6px;color:var(--lr-muted)}
#notice .lr-member-page .lr-member-plan[aria-pressed=true] .lr-plan-period{color:#c6c0cf}
#notice .lr-member-page .lr-plan-radio{position:absolute;right:17px;top:24px;width:14px;height:14px;border-radius:50%;border:1px solid var(--lr-rule)}
#notice .lr-member-page .lr-member-plan[aria-pressed=true] .lr-plan-radio{background:#fff;box-shadow:inset 0 0 0 4px var(--lr-ink)}
#notice .lr-member-page .lr-plan-badge{position:absolute;right:14px;bottom:18px;font-size:10px;background:var(--lr-accent-soft);color:var(--lr-accent);padding:4px 6px;border-radius:4px}
#notice .lr-member-page .lr-member-plan[aria-pressed=true] .lr-plan-badge{background:#47414f;color:#fff}
#notice .lr-member-page .lr-purchase-footer{display:flex;justify-content:space-between;align-items:center;margin-top:20px;gap:24px}
#notice .lr-member-page .lr-trials{font-size:12px;color:var(--lr-muted);line-height:1.9}
#notice .lr-member-page .lr-trial-list{display:flex;gap:20px;flex-wrap:wrap;margin-top:5px}
#notice .lr-member-page .lr-trial-list>span{display:flex;flex-direction:column}
#notice .lr-member-page .lr-trial-list strong{font-size:12px;font-weight:400;color:var(--lr-ink-2)}
#notice .lr-member-page .lr-trial-list small{font-size:11px}
#notice .lr-member-page .lr-subscribe{min-width:248px}
#notice .lr-member-page .lr-payment-info{font-size:12px;color:var(--lr-muted);margin:20px 0 0}
#notice .lr-member-page .lr-checkout-state{font-size:13px;line-height:1.7;color:var(--lr-ink-2);margin:10px 0 0;min-height:22px;overflow-wrap:anywhere}
#notice .lr-member-page .lr-payment-panel{text-align:center;padding:24px;background:var(--lr-surface);border:1px solid var(--lr-rule);border-radius:14px;margin-top:20px}
#notice .lr-member-page .lr-payment-panel .checkout-amount{font-family:LRLexend,sans-serif;font-size:30px;margin:10px 0;color:var(--lr-ink)}
#notice .lr-member-page .lr-payment-panel :is(.muted,.checkout-disclaimer){font-size:13px;color:var(--lr-muted)}
#notice .lr-member-page .lr-payment-panel .checkout-disclaimer{margin-top:16px;background:var(--lr-soft);border-radius:9px;padding:12px}
#notice .lr-member-page .lr-payment-panel .order-reference{margin-top:14px;font-size:12px;color:var(--lr-muted)}
#notice .lr-member-page.lr-member-has-order .lr-member-plans,#notice .lr-member-page.lr-member-has-order .lr-trials{display:none}
#notice .lr-member-page.lr-member-has-order .lr-purchase-footer{justify-content:flex-end}
#notice .lr-member-page.lr-member-has-order .lr-member-hero,#notice .lr-member-page.lr-member-has-order .lr-member-content{display:none}
.lr-profile-page{--lr-paper:#f6f7fb;--lr-surface:#ffffff;--lr-soft:#eef1f7;--lr-ink:#121629;--lr-ink-2:#333b52;--lr-muted:#646d82;--lr-rule:#eaeff7;--lr-accent:#584cf4;--lr-accent-soft:#eeebff;--lr-success:#0e8f6b;--lr-success-soft:#e5f8f2;max-width:1248px;padding:12px 0 48px;margin:auto;width:100%;background:transparent}
.lr-profile-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px;padding:22px 26px;background:linear-gradient(135deg,#f5f2ff 0%,#ffffff 55%);border:1px solid var(--lr-rule);border-radius:24px;box-shadow:0 8px 24px rgba(18,22,41,0.045);gap:20px}
.lr-profile-heading h1{font-weight:800;font-size:28px;letter-spacing:-.7px;line-height:1.35;color:var(--lr-ink)}
.lr-profile-identity{display:flex;align-items:center;gap:13px;min-width:0;padding:8px 10px 8px 12px;border-radius:999px;background:#ffffff;border:1px solid var(--lr-rule);box-shadow:0 4px 14px rgba(18,22,41,0.035)}
.lr-profile-identity>img{width:46px;height:46px;object-fit:contain;background:var(--lr-accent-soft);border:1px solid var(--lr-rule);border-radius:50%;padding:2px;flex:none}
.lr-profile-identity strong{font-size:14px;font-weight:700;color:var(--lr-ink);overflow-wrap:anywhere}
.lr-profile-identity small{display:block;font-size:12px;color:var(--lr-muted);margin-top:2px}
.lr-profile-identity .lr-icon-button{margin-left:6px;width:38px;height:38px;background:var(--lr-paper)}
.lr-profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px}
.lr-profile-main,.lr-profile-side{min-width:0}
.lr-profile-message{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px;padding:18px 22px;border:1px solid #e4e0fb;border-radius:20px;background:linear-gradient(135deg,#f6f3ff 0%,#ffffff 70%);color:var(--lr-ink-2);font-size:13px;box-shadow:0 4px 14px rgba(18,22,41,0.03)}
.lr-profile-message strong{font-weight:700;color:var(--lr-ink)}
.lr-profile-message p{margin-top:4px;font-size:12.5px}
.lr-learning-overview{background:var(--lr-surface);border:1px solid var(--lr-rule);border-radius:24px;padding:24px 28px;box-shadow:0 8px 24px rgba(18,22,41,0.04)}
.lr-panel-topline{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:12px}
.lr-profile-page h2{font-size:17px;font-weight:800;line-height:1.5;color:var(--lr-ink)}
.lr-panel-topline .lr-text-button{font-size:12.5px;font-weight:600;padding:6px 12px;border-radius:999px;background:var(--lr-paper)}
.lr-today-progress{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center;padding:16px 18px;border-radius:18px;background:linear-gradient(135deg,#fff8ef 0%,#ffffff 75%);border:1px solid #f5ece0}
.lr-profile-page .lr-today-number{font-family:LRLexend,sans-serif;font-size:56px;letter-spacing:-3px;line-height:1;font-weight:600;color:var(--lr-ink)}
.lr-today-number small{font-family:'PingFang SC',sans-serif;font-size:12px;letter-spacing:0;color:var(--lr-muted);margin-left:8px}
.lr-profile-page .lr-today-caption{font-size:12.5px;color:var(--lr-muted);margin-top:8px;line-height:1.7}
.lr-today-caption strong{color:var(--lr-success);font-weight:700}
.lr-weekly-chart{display:flex;gap:12px;align-items:flex-end;height:110px;border-bottom:1px solid var(--lr-rule);padding-bottom:0}
.lr-day{flex:1;min-width:10px;text-align:center;position:relative;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}
.lr-day>i{display:block;min-height:4px;width:100%;max-width:20px;border-radius:6px 6px 0 0;background:#e6e2fb}
.lr-day.is-today>i{background:linear-gradient(180deg,#ff9f2e 0%,#f57c00 100%)}
.lr-day>small{font-size:10.5px;position:absolute;bottom:-24px;color:var(--lr-muted);white-space:nowrap}
.lr-day.is-today>small{color:var(--lr-ink);font-weight:700}
.lr-profile-totals{display:flex;margin-top:46px;padding-top:20px;border-top:1px solid var(--lr-rule)}
.lr-profile-totals>div{flex:1;min-width:0}
.lr-profile-totals>div+div{border-left:1px solid var(--lr-rule);padding-left:24px}
.lr-profile-totals strong{font-family:LRLexend,sans-serif;font-size:22px;font-weight:600;color:var(--lr-ink);letter-spacing:-.5px;overflow-wrap:anywhere}
.lr-profile-totals strong small{font-family:'PingFang SC',sans-serif;font-size:11.5px;letter-spacing:0;margin-left:5px;color:var(--lr-muted);white-space:nowrap}
.lr-profile-totals span{display:block;margin-top:5px;font-size:12px;color:var(--lr-muted)}
.lr-profile-page .lr-ledger-zone{font-size:11px;color:var(--lr-muted);margin-top:14px}
.lr-profile-page .lr-profile-placeholder{font-size:13px;color:var(--lr-muted);line-height:1.9;padding:16px 0}
.lr-profile-page .lr-profile-sync-error{font-size:12px;color:var(--lr-muted);margin-top:10px}
.lr-member-pass{border-radius:24px;background:linear-gradient(140deg,#fff7eb 0%,#f6f1ff 52%,#ede6fe 100%);border:1px solid #e6defa;box-shadow:0 10px 28px rgba(88,76,244,0.08);color:var(--lr-ink);padding:26px 26px 22px;position:relative;overflow:hidden;display:flex;flex-direction:column;min-height:268px}
.lr-member-pass:after{content:'';position:absolute;width:150px;height:150px;right:-40px;top:-40px;border:1px solid rgba(88,76,244,0.14);border-radius:50%;box-shadow:0 0 0 24px rgba(88,76,244,0.05),0 0 0 48px rgba(245,158,11,0.05);pointer-events:none}
.lr-profile-page .lr-pass-label{font-family:LRLexend,sans-serif;font-size:11px;font-weight:700;letter-spacing:1px;color:var(--lr-accent);display:inline-flex;gap:7px;align-items:center;z-index:1;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,0.8);align-self:flex-start}
.lr-pass-label .icon{width:14px;height:14px}
.lr-profile-page .lr-member-pass h2{font-size:23px;font-weight:800;margin-top:20px;color:var(--lr-ink);position:relative;z-index:1}
.lr-profile-page .lr-pass-expiry{margin-top:8px;font-size:12.5px;line-height:1.8;color:var(--lr-ink-2);position:relative;z-index:1;overflow-wrap:anywhere}
.lr-pass-divider{height:1px;background:rgba(88,76,244,0.12);margin:20px 0 16px}
.lr-profile-page .lr-pass-device{font-size:12px;color:var(--lr-muted);display:flex;gap:8px;align-items:center}
.lr-pass-device .icon{width:14px;height:14px;color:var(--lr-accent)}
.lr-profile-page .lr-pass-link{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px;padding:11px 16px;border-radius:999px;background:var(--lr-accent);color:#ffffff;font-size:13px;font-weight:700;text-align:left;min-height:42px;position:relative;box-shadow:0 6px 16px rgba(88,76,244,0.24)}
.lr-profile-page .lr-pass-link:hover{background:#4336d6;color:#ffffff}
.lr-profile-continue{margin-top:22px}
.lr-continue-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:12px}
.lr-profile-page .lr-continue-item{display:flex;align-items:center;gap:18px;padding:18px 20px;background:var(--lr-surface);border:1px solid var(--lr-rule);border-radius:22px;box-shadow:0 4px 14px rgba(18,22,41,0.035);width:100%;text-align:left;transition:transform 160ms ease,box-shadow 160ms ease}
.lr-profile-page .lr-continue-item:hover{transform:translateY(-2px);background:#ffffff;box-shadow:0 10px 26px rgba(18,22,41,0.06)}
.lr-continue-item>img,.lr-continue-cover{width:70px;height:70px;border-radius:16px;object-fit:cover;flex:none}
.lr-continue-cover{display:grid;place-items:center;background:var(--lr-accent-soft);color:var(--lr-accent)}
.lr-continue-cover .icon{width:28px;height:28px}
.lr-continue-copy{flex:1;min-width:0}
.lr-series-name{display:block;font-family:LRLexend,sans-serif;font-size:11px;font-weight:600;color:var(--lr-accent);margin-bottom:5px;overflow-wrap:anywhere}
.lr-continue-copy>strong{display:block;font-size:15.5px;font-weight:700;line-height:1.5;color:var(--lr-ink);overflow-wrap:anywhere}
.lr-continue-meta{font-size:12px;color:var(--lr-muted);display:flex;align-items:center;gap:10px;margin-top:8px;flex-wrap:wrap}
.lr-mini-progress{width:88px;height:5px;display:inline-block;background:var(--lr-accent-soft);border-radius:99px;overflow:hidden;flex:none}
.lr-mini-progress i{display:block;height:100%;background:var(--lr-accent);border-radius:99px}
.lr-continue-play{width:40px;height:40px;display:grid;place-items:center;flex:none;border-radius:50%;background:linear-gradient(135deg,#6b5ff8 0%,#584cf4 100%);color:white;box-shadow:0 6px 14px rgba(88,76,244,0.25)}
.lr-study-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}
.lr-profile-page .lr-shelf-entry{display:flex;align-items:center;padding:18px;background:var(--lr-surface);border:1px solid var(--lr-rule);border-radius:20px;box-shadow:0 4px 14px rgba(18,22,41,0.03);gap:12px;text-align:left;min-height:82px;transition:transform 160ms ease,border-color 160ms ease}
.lr-profile-page .lr-shelf-entry:hover{transform:translateY(-2px);background:#ffffff;border-color:rgba(88,76,244,0.25)}
.lr-shelf-entry>.icon{width:22px;height:22px;padding:8px;box-sizing:content-box;border-radius:12px;background:var(--lr-accent-soft);color:var(--lr-accent)}
.lr-shelf-entry>span{flex:1;min-width:0}
.lr-shelf-entry strong{font-size:13.5px;display:block;font-weight:700;color:var(--lr-ink)}
.lr-shelf-entry small{font-size:11.5px;color:var(--lr-muted);display:block;margin-top:4px}
.lr-shelf-entry>.lr-shelf-count{font-family:LRLexend,sans-serif;font-size:20px;font-weight:700;color:var(--lr-accent);flex:0}
.lr-library-more{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
.lr-library-more .lr-text-button{padding:7px 14px;border-radius:999px;background:#ffffff;border:1px solid var(--lr-rule);font-weight:600}
.lr-profile-preferences{padding:22px 24px;margin-top:20px;background:#ffffff;border:1px solid var(--lr-rule);border-radius:24px;box-shadow:0 8px 24px rgba(18,22,41,0.035)}
.lr-profile-page .lr-profile-preferences h2{font-size:16px;font-weight:800;margin-bottom:12px}
.lr-preference-row{display:flex;align-items:flex-start;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--lr-rule);gap:16px;font-size:12.5px;color:var(--lr-muted)}
.lr-preference-row>span{flex:none}
.lr-preference-row>strong{font-weight:600;color:var(--lr-ink);text-align:right;overflow-wrap:anywhere}
.lr-profile-page .lr-preferences-note{font-size:12px;color:var(--lr-muted);line-height:1.75;margin-top:12px}
.lr-profile-footer{margin-top:28px;border-top:1px solid var(--lr-rule);padding-top:18px;display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:12.5px;color:var(--lr-muted)}
.lr-profile-footer>div{display:flex;gap:16px}
@media(hover:hover) and (pointer:fine){#notice .lr-member-page .lr-member-plan:hover{border-color:var(--lr-muted)}.lr-profile-page .lr-shelf-entry:hover,.lr-profile-page .lr-continue-item:hover{background:var(--lr-soft)}#notice .lr-member-page .lr-primary:hover,.lr-profile-page .lr-primary:hover{background:#423a4b}#notice .lr-member-page .lr-text-button:hover,.lr-profile-page .lr-text-button:hover{color:var(--lr-accent)}}
@media(max-width:1100px){.lr-profile-layout{grid-template-columns:minmax(0,1fr) 280px;gap:24px}.lr-profile-page{padding:24px}.lr-study-shelf{gap:10px}.lr-profile-page .lr-shelf-entry{padding:14px 12px;gap:8px}.lr-shelf-entry>.icon{display:none}#notice .lr-member-page .lr-member-hero{gap:28px}#notice .lr-member-page .lr-cover-shelf{transform:scale(.9);transform-origin:center}#notice .lr-member-page .lr-member-plan{padding:20px 16px}#notice .lr-member-page .lr-plan-badge{position:static;align-self:flex-end;margin-top:4px;padding:2px 5px}.lr-profile-totals>div+div{padding-left:16px}.lr-learning-overview{padding:24px}#notice .lr-member-page .lr-subscribe{min-width:210px}}
@media(max-width:850px){.lr-profile-layout{grid-template-columns:1fr}.lr-profile-side{display:grid;grid-template-columns:1fr 1fr;gap:24px}.lr-profile-preferences{margin-top:0}#notice .lr-member-page .lr-member-hero{grid-template-columns:1fr 1fr;gap:16px}#notice .lr-member-page .lr-cover-shelf{transform:scale(.82);transform-origin:left center;width:115%}#notice .lr-member-page .lr-member-content{gap:20px}#notice .lr-member-page .lr-member-benefits{padding-right:0}#notice .lr-member-page .lr-member-benefits h2{font-size:21px}#notice .lr-member-page .lr-lesson-example{padding:24px 20px}#notice .lr-member-page .lr-plan-radio{right:14px}#notice .lr-member-page .lr-purchase-footer{align-items:flex-end}#notice .lr-member-page .lr-trial-list{gap:12px}}
@media(max-width:650px){#notice:has(.lr-member-page){width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:14px}#notice .notice-content.lr-member-page{padding:26px 20px;max-height:calc(100dvh - 22px)!important}#notice:has(.lr-member-page) .notice-actions{top:12px;right:12px}#notice .lr-member-page .lr-eyebrow{padding-right:40px}#notice .lr-member-page .lr-member-status{margin-top:20px}#notice .lr-member-page .lr-member-hero{grid-template-columns:1fr;gap:0}#notice .lr-member-page .lr-member-hero h1{font-size:31px;letter-spacing:-1px}#notice .lr-member-page .lr-member-hero .lr-member-intro{font-size:13px;margin-top:14px}#notice .lr-member-page .lr-member-perks{gap:14px;margin-top:18px}#notice .lr-member-page .lr-cover-shelf{height:268px;width:min(100%,380px);margin:15px auto 0;transform:scale(.9);transform-origin:center center}#notice .lr-member-page .lr-cover-shelf>p{left:-5px}#notice .lr-member-page .lr-member-content{grid-template-columns:1fr;gap:22px;margin:22px 0 28px}#notice .lr-member-page .lr-member-benefits{padding:0}#notice .lr-member-page .lr-member-benefits h2{font-size:22px}#notice .lr-member-page .lr-lesson-example .lr-example-en{font-size:22px}#notice .lr-member-page .lr-member-plans{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#notice .lr-member-page .lr-member-plan{padding:18px;min-height:144px}#notice .lr-member-page .lr-plan-price strong{font-size:28px}#notice .lr-member-page .lr-plan-radio{top:21px}#notice .lr-member-page .lr-plan-badge{position:absolute;bottom:15px;right:12px}#notice .lr-member-page .lr-plans-heading{display:block;margin-bottom:16px}#notice .lr-member-page .lr-plans-heading p{margin-top:6px}#notice .lr-member-page .lr-purchase-footer{display:flex;flex-direction:column;align-items:stretch;gap:20px}#notice .lr-member-page .lr-subscribe{width:100%;min-width:0}#notice .lr-member-page .lr-trial-list{gap:16px}#notice .lr-member-page .lr-trial-list>span{min-width:70px}#notice .lr-member-page .lr-payment-panel{padding:20px 14px}#notice .lr-member-page.lr-member-has-order .lr-purchase-footer{margin-top:0}.lr-profile-page{padding:20px 18px 35px}.lr-profile-heading{align-items:flex-start;margin-bottom:24px;gap:12px}.lr-profile-heading h1{font-size:28px;letter-spacing:-.8px;max-width:230px}.lr-profile-heading .lr-eyebrow{font-size:11px;margin-bottom:7px}.lr-profile-identity{gap:8px;padding-top:10px}.lr-profile-identity>img{height:39px;width:39px}.lr-profile-identity>div{display:none}.lr-profile-identity .lr-icon-button{margin-left:0;width:40px;height:40px}.lr-profile-side{grid-template-columns:1fr}.lr-profile-preferences{padding:0}.lr-profile-message{align-items:flex-start;flex-direction:column;gap:14px;padding:18px}.lr-learning-overview{padding:21px;border-radius:14px}.lr-panel-topline{margin-bottom:22px}.lr-panel-topline h2{font-size:14px}.lr-panel-topline .lr-text-button{font-size:11px}.lr-today-progress{gap:14px;grid-template-columns:.9fr 1.1fr}.lr-profile-page .lr-today-number{font-size:53px;letter-spacing:-3px}.lr-today-number small{font-size:11px;margin-left:5px}.lr-profile-page .lr-today-caption{font-size:12px;line-height:1.8;margin-top:11px}.lr-weekly-chart{height:99px;gap:7px}.lr-day>i{max-width:18px;max-height:80px}.lr-profile-totals{margin-top:44px;padding-top:20px}.lr-profile-totals strong{font-size:20px;letter-spacing:-.7px}.lr-profile-totals>div+div{padding-left:12px}.lr-profile-totals strong small{display:block;margin:3px 0 0}.lr-profile-totals span{font-size:11px}.lr-study-shelf{grid-template-columns:1fr;gap:10px}.lr-profile-page .lr-shelf-entry{padding:16px 18px;gap:13px;min-height:70px}.lr-shelf-entry>.icon{display:block}.lr-shelf-entry small{font-size:12px}.lr-shelf-entry strong{font-size:13px}.lr-profile-page .lr-continue-item{padding:16px;gap:13px}.lr-continue-item>img,.lr-continue-cover{width:56px;height:56px}.lr-continue-copy>strong{font-size:14px}.lr-continue-play{width:32px;height:32px}.lr-series-name{font-size:10px}.lr-continue-meta{gap:8px;font-size:11px}.lr-mini-progress{width:55px}.lr-profile-footer{flex-direction:column;align-items:flex-start;gap:8px}.lr-member-pass{min-height:275px}.lr-profile-page .lr-profile-placeholder{padding:16px 0;font-size:13px}}
@media(max-width:360px){#notice .notice-content.lr-member-page{padding:24px 16px}#notice .lr-member-page .lr-member-status:has(button){padding-right:17px}#notice .lr-member-page .lr-member-status .lr-text-button{position:static;margin-top:6px}#notice .lr-member-page .lr-cover-shelf{transform:scale(.78);height:245px;width:114%;margin-left:-7%}#notice .lr-member-page .lr-member-perks{gap:10px;font-size:11px}#notice .lr-member-page .lr-member-hero h1{font-size:28px}#notice .lr-member-page .lr-plan-badge{position:static}#notice .lr-member-page .lr-member-plan{padding:18px 15px}.lr-profile-heading h1{font-size:25px}.lr-profile-identity>img{display:none}.lr-learning-overview{padding:18px}.lr-profile-page .lr-today-number{font-size:46px}.lr-profile-totals strong{font-size:18px}.lr-continue-play{display:none}.lr-continue-title h2{font-size:15px}}
@media(prefers-reduced-motion:reduce){#notice .lr-member-page *,.lr-profile-page *{scroll-behavior:auto!important;transition:none!important}#notice .lr-member-page .lr-primary:active,.lr-profile-page .lr-primary:active{transform:none}}

/* Web level choice uses the same account profile as native clients. */
.lr-level-form{margin:10px 0 22px}.lr-level-form>label{display:block;font-size:12px;color:#62586e;margin-bottom:8px}.lr-level-form>div{display:flex;gap:8px}.lr-level-form select{min-width:0;flex:1;min-height:44px;padding:8px 10px;border:1px solid #d9d1e3;border-radius:8px;background:#fff;color:#332c3b;font:inherit}.lr-level-save{min-height:44px;padding:8px 12px;border-radius:8px;background:#6c42a4;color:#fff;font-size:12px;font-weight:600}.lr-level-form>p{font-size:12px;line-height:1.6;color:#716678;margin:8px 0 0}.lr-level-form .lr-level-result{color:#63418c;min-height:19px}.lr-level-form :disabled{opacity:.6;cursor:wait}

/* Group hours and minutes as readable value/unit pairs without changing ledger data. */
.lr-profile-page .lr-duration-part{display:inline-flex;align-items:baseline;white-space:nowrap;gap:0;margin:0}
.lr-profile-page .lr-duration-part+.lr-duration-part{margin-left:10px}
.lr-profile-page .lr-duration-part small{display:inline;margin-bottom:0}
.lr-profile-page .lr-today-number:has(.lr-duration-part+.lr-duration-part){font-size:44px;letter-spacing:-2px;display:flex;flex-wrap:wrap;row-gap:8px}
.lr-profile-totals strong:has(.lr-duration-part){display:flex;flex-wrap:wrap;row-gap:5px}
@media(max-width:700px){.lr-profile-page .lr-today-number:has(.lr-duration-part+.lr-duration-part){font-size:32px;letter-spacing:-1px}.lr-profile-page .lr-duration-part+.lr-duration-part{margin-left:6px}.lr-profile-totals strong .lr-duration-part small{display:inline;margin-left:4px}}
/* Membership. The checkout body scrolls independently of the payment action. */
#notice:has(.lr-notebook){--paper:#fcfbff;width:min(1040px,calc(100vw - 48px));max-width:1040px;background:var(--paper);border:0;border-radius:0;box-shadow:none}
#notice:has(.lr-notebook)::backdrop{background:#27233863}
#notice:has(.lr-notebook) .notice-actions{top:15px;inset-inline-end:15px;inset-inline-start:auto}
#notice:has(.lr-notebook) .notice-close{height:44px;width:44px;background:var(--paper)!important;border:0;box-shadow:none}
#notice .notice-content.lr-notebook{--ink:#27223b;--muted:#615b70;--blue:#6551ce;--edge:#e1deea;--lr-accent:var(--blue);--lr-rule:var(--edge);display:grid;grid-template-columns:minmax(0,1fr) 254px;align-items:start;gap:32px;padding:26px 30px;max-height:min(88dvh,940px)!important;overflow:auto!important;text-align:start;background:transparent;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.5}
#notice .lr-notebook-body{min-width:0}
#notice .lr-notebook .lr-edition-state strong{font-weight:550}
#notice .lr-notebook .lr-edition-state p:empty{display:none}
#notice .lr-notebook .lr-edition-state .lr-text-button{display:inline-flex;align-items:center;min-height:40px;padding:0 5px;color:var(--blue);font-size:13px;text-decoration:underline;text-underline-offset:3px}
#notice .lr-notebook .lr-edition-compare,#notice .lr-notebook .lr-edition-purchase{margin-top:25px}
#notice .lr-notebook :is(.lr-edition-compare,.lr-edition-purchase) h2{font-size:19px;font-weight:620;line-height:1.35;letter-spacing:-.025em;margin:0 0 12px}
#notice .lr-notebook .lr-edition-plan:enabled:hover{border-color:#a69bd8}
#notice .lr-notebook .lr-edition-plan[aria-pressed=true]{border-color:var(--blue);background:#f4f1fc;box-shadow:none}
#notice .lr-notebook [aria-pressed=true]>.lr-edition-radio::after{content:"";width:6px;height:6px;border-radius:50%;background:var(--blue)}
#notice .lr-notebook .lr-edition-price strong{font-size:24px;font-weight:600;line-height:1.1;letter-spacing:-.045em}
#notice .lr-notebook .lr-edition-price small{font-size:13px;font-weight:550}
#notice .lr-notebook .lr-benefit-table{border-collapse:collapse;width:100%;font-size:14px;line-height:1.45;table-layout:fixed}
#notice .lr-notebook .lr-col-feature{width:43%}#notice .lr-notebook .lr-col-free{width:30%}#notice .lr-notebook .lr-col-plus{width:27%}
#notice .lr-notebook .lr-benefit-table th,#notice .lr-notebook .lr-benefit-table td{height:52px;padding:9px 10px;border-bottom:1px solid var(--edge);overflow-wrap:anywhere;vertical-align:middle}
#notice .lr-notebook .lr-benefit-table thead th{height:39px;font-size:12px;color:var(--muted);background:transparent;font-weight:550}
#notice .lr-notebook .lr-benefit-table tbody tr:last-child>*{border-bottom:0}
#notice .lr-notebook .lr-benefit-table th:first-child{text-align:start;font-weight:560}
#notice .lr-notebook .lr-benefit-table th:not(:first-child),#notice .lr-notebook .lr-benefit-table td{text-align:center}
#notice .lr-notebook .lr-benefit-table td{color:var(--muted)}
#notice .lr-notebook .lr-benefit-table tr>:last-child{color:#5945b4;font-weight:620}
#notice .lr-notebook .lr-benefit-fine{font-size:13px;color:var(--muted);margin:10px 0 4px}
#notice .lr-notebook .lr-edition-actions{position:sticky;top:45px;display:grid;grid-template-columns:1fr;gap:12px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
#notice .lr-notebook .lr-edition-selection{display:flex;justify-content:space-between;flex-wrap:wrap;align-items:baseline;gap:3px 6px}
#notice .lr-notebook .lr-edition-selection strong{font-size:14px;font-weight:560}
#notice .lr-notebook .lr-edition-selection span{font-size:25px;font-weight:620;letter-spacing:-.04em}
#notice .lr-notebook .lr-subscribe{border:0;width:100%;min-width:0;min-height:47px;line-height:1.28;padding:9px 12px;border-radius:10px;background:var(--blue);color:#fff;font-size:15px;font-weight:570}
#notice .lr-notebook .lr-subscribe:disabled{background:#e4eaf2;color:#56647a;opacity:1;cursor:default}
#notice .lr-notebook .lr-edition-payment{font-size:13px;line-height:1.48;color:var(--muted)}
#notice .lr-notebook .lr-edition-legal{display:flex;align-items:center;flex-wrap:wrap;gap:0 16px}
#notice .lr-notebook .lr-edition-legal a{display:inline-flex;align-items:center;min-height:44px;font-size:13px;color:#5c4da3;text-decoration:underline;text-underline-offset:3px}
#notice .lr-notebook .lr-checkout-state:empty{display:none}
#notice .lr-notebook .lr-checkout-state{margin:14px 0;color:#944026;font-size:14px}
#notice .lr-notebook .lr-payment-panel{margin:14px auto;scroll-margin-block:16px;padding:0;border:0;border-radius:0;background:transparent}
#notice .lr-notebook .lr-payment-panel .checkout-disclaimer{background:none;border-radius:0;padding:0}
#notice .lr-notebook .lr-payment-panel .payment-success{background:none;border-radius:0;width:auto;height:auto;margin:12px 0}
#notice .lr-notebook .lr-subscribe:focus-visible,#notice .lr-notebook .lr-edition-plan:focus-visible{outline-offset:3px}
@media(max-width:850px){
 #notice:has(.lr-notebook) .notice-form{order:-1;margin:0;padding:0 18px;flex:none}
 #notice:has(.lr-notebook) .notice-actions{position:static;display:flex;align-items:center;justify-content:flex-start;gap:3px;height:48px}
 #notice:has(.lr-notebook) .notice-close{position:static!important;inset:auto;flex:none}
 #notice .notice-content.lr-notebook{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;max-height:calc(100dvh - 24px)!important;overflow:hidden!important}
 #notice .lr-notebook-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:20px 24px 23px}
 #notice .lr-notebook .lr-edition-actions{position:static;flex:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(125px,1.2fr);gap:0 12px;align-items:center;padding:10px 24px max(3px,env(safe-area-inset-bottom));border:0;border-radius:0;box-shadow:none;z-index:2}
 #notice .lr-notebook .lr-edition-selection{flex-flow:column;gap:0}
 #notice .lr-notebook .lr-edition-selection span{font-size:21px;line-height:1.17}
 #notice .lr-notebook .lr-edition-payment{display:none}
 #notice .lr-notebook .lr-edition-legal{grid-column:1/-1;justify-content:center;border:0;gap:0 18px}
 #notice .lr-notebook .lr-edition-legal a{min-height:44px}
}
@media(max-width:520px){
 #notice:has(.lr-notebook){width:100%;max-width:none;height:100dvh;max-height:100dvh;border-radius:0;margin:0}
 #notice .notice-content.lr-notebook{height:100%;max-height:100dvh!important}
 #notice .lr-notebook-body{scrollbar-gutter:auto;padding:2px 18px 20px}
 #notice:has(.lr-notebook) .notice-actions{top:12px;inset-inline-end:12px}
 #notice .lr-notebook .lr-edition-actions{padding-inline:18px}
 #notice .lr-notebook .lr-edition-price strong{font-size:20px}
 #notice .lr-notebook :is(.lr-edition-compare,.lr-edition-purchase){margin-top:18px}
 #notice .lr-notebook :is(.lr-edition-compare,.lr-edition-purchase) h2{font-size:17px;margin-bottom:9px}
 #notice .lr-notebook .lr-benefit-table th,#notice .lr-notebook .lr-benefit-table td{padding:8px 6px;font-size:13px}
}
@media(max-width:360px){
}
@media(max-height:530px) and (max-width:850px){
 #notice .lr-notebook .lr-edition-actions{grid-template-columns:1fr 1.1fr;gap:0 12px;padding-block:4px}
 #notice .lr-notebook .lr-edition-legal{display:flex;grid-column:1/-1}
}
@media(prefers-reduced-motion:reduce){#notice .lr-notebook *,#notice .lr-notebook *::after{transition:none!important}}
@media(max-width:850px){
 #notice .lr-notebook .lr-edition-payment{display:block;grid-column:1/-1;margin:5px 0 0;text-align:center;font-size:12px;line-height:1.35}
}
@media(min-width:851px){#notice:has(.lr-notebook){width:min(986px,calc(100vw - 48px));max-width:986px}}

/* The five original podcast covers stay together as one illustration. */
#notice .lr-member-page-title{display:none}
#notice .lr-notebook .lr-edition-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.9fr);align-items:center;gap:12px;padding:2px 0 8px}
#notice .lr-notebook .lr-edition-intro{grid-row:1;grid-column:1}
#notice .lr-notebook .lr-edition-head h1{margin:0;font-size:clamp(28px,3vw,39px);line-height:1.22;font-weight:620;letter-spacing:-.035em;overflow-wrap:anywhere}
#notice .lr-notebook .lr-edition-note{font-size:14px;line-height:1.55;color:var(--muted);margin:8px 0 0}
#notice .lr-notebook .lr-podcast-fan{grid-row:1;grid-column:2;position:relative;isolation:isolate;width:100%;height:155px;pointer-events:none}
#notice .lr-notebook .lr-podcast-cover{position:absolute;left:50%;top:48%;width:min(30%,100px);height:auto;aspect-ratio:1;object-fit:cover;display:block;border-radius:10%;transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) rotate(var(--angle))}
#notice .lr-podcast-cover[data-position="0"]{--x:-96%;--y:14%;--angle:-10.9deg;z-index:1}
#notice .lr-podcast-cover[data-position="1"]{--x:-48%;--y:5%;--angle:-5.45deg;z-index:3}
#notice .lr-podcast-cover[data-position="2"]{--x:0%;--y:0%;--angle:0deg;z-index:5}
#notice .lr-podcast-cover[data-position="3"]{--x:48%;--y:5%;--angle:5.45deg;z-index:4}
#notice .lr-podcast-cover[data-position="4"]{--x:96%;--y:14%;--angle:10.9deg;z-index:2}
#notice .lr-notebook .lr-edition-state{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 9px;color:var(--muted);font-size:12px;margin-top:6px}
#notice .lr-notebook .lr-edition-state strong::before{content:"";display:inline-block;vertical-align:middle;margin-inline-end:6px;background:#9892a0;width:5px;height:5px;border-radius:50%}
#notice .lr-notebook .lr-edition-state.is-active strong::before{background:#408267}
#notice .lr-notebook .lr-plan-heading{display:flex;align-items:baseline;justify-content:space-between;gap:5px 12px;flex-wrap:wrap;margin-bottom:10px}
#notice .lr-notebook .lr-plan-heading h2{margin:0}
#notice .lr-notebook .lr-plan-heading p{font-size:12px;color:var(--muted)}
#notice .lr-notebook .lr-edition-plans{display:grid;grid-template-columns:1fr;gap:8px}
#notice .lr-notebook .lr-edition-plan{display:grid;grid-template-columns:minmax(0,1fr) auto 14px;grid-template-areas:"name price radio" "period price radio";align-items:center;column-gap:12px;row-gap:1px;width:100%;min-height:62px;padding:9px 15px;border:1px solid var(--edge);border-radius:10px;text-align:start;color:var(--ink);background:#fff;transition:background-color .15s,border-color .15s}
#notice .lr-notebook .lr-edition-plan-name{grid-area:name;font-size:14px;line-height:1.4;font-weight:570;overflow-wrap:anywhere}
#notice .lr-notebook .lr-edition-period{grid-area:period;color:var(--muted);font-size:12px;line-height:1.4}
#notice .lr-notebook .lr-edition-price{grid-area:price;display:flex;align-items:baseline;gap:1px;font-variant-numeric:tabular-nums;color:var(--ink)}
#notice .lr-notebook .lr-edition-price strong{font-size:21px}
#notice .lr-notebook .lr-edition-radio{grid-area:radio;display:grid;place-items:center;width:13px;height:13px;border:1px solid #aaa1bd;border-radius:50%}
#notice .lr-notebook .lr-edition-plan[aria-pressed=true]{background:#f5f2ff;border-color:var(--blue)}
#notice .lr-notebook .lr-included>span::before{content:"✓";padding-inline-end:.35em;color:var(--blue)}
@media (max-width:850px){
  #notice .lr-member-page-title{display:block;color:#2c263d;font-size:16px;font-weight:600}
  #notice .lr-notebook .lr-edition-head{display:flex;flex-direction:column;gap:3px;text-align:center;padding:0 0 9px}
  #notice .lr-notebook .lr-podcast-fan{width:min(100%,340px);height:120px}
  #notice .lr-notebook .lr-podcast-cover{width:min(30%,84px)}
  #notice .lr-notebook .lr-edition-head h1{font-size:clamp(26px,7.8vw,34px)}
  #notice .lr-notebook .lr-edition-note{margin-top:6px;font-size:13px}
  #notice .lr-notebook .lr-edition-actions .lr-subscribe{border-radius:14px}
}
@media(max-width:360px){#notice .lr-notebook .lr-edition-plan{column-gap:8px;padding-inline:12px}}

#notice .lr-notebook [aria-pressed=true]>.lr-edition-radio{border-color:var(--blue)}

@media(max-width:850px){
  #notice:has(.lr-notebook) .notice-form{width:100%;box-sizing:border-box;align-self:stretch;display:flex;justify-content:flex-start}
  #notice:has(.lr-notebook) .notice-actions{width:100%;margin:0!important;padding:0;justify-content:flex-start!important}
  #notice:has(.lr-notebook) .notice-close{margin:0;min-width:44px}
  #notice .lr-notebook .lr-edition-state{display:block;margin-block-start:10px}
  #notice .lr-notebook .lr-edition-state p{margin-block-start:2px}
}

/* auth-redesign.css */
/* Login is a presentation layer over the existing phone authentication flow. */
#notice:has(.auth-content){width:min(880px,calc(100vw - 40px));max-width:880px;max-height:calc(100dvh - 40px);padding:0;border:1px solid #e7e3ec;border-radius:20px;background:#fff;overflow:auto;color:#29272e;box-shadow:0 24px 90px #24203024}
#notice:has(.auth-content)::backdrop{background:#24212b66;backdrop-filter:blur(5px)}
#notice:has(.auth-content) .notice-form{margin:0;padding:0}
#notice:has(.auth-content) .notice-title{display:none}
#notice:has(.auth-content) .notice-actions{position:absolute;z-index:3;top:16px;right:16px;padding:0;margin:0}
#notice:has(.auth-content) .notice-close{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid #e8e4ed;border-radius:50%;background:#fff!important;color:#6f6977!important;transition:background-color 160ms ease,transform 160ms ease}
#notice:has(.auth-content) .notice-close:hover{background:#f1eef6!important}
#notice:has(.auth-content) .notice-close:active{transform:scale(.97)}
#notice .notice-content.auth-content{display:grid;grid-template-columns:.96fr 1.04fr;max-height:none;overflow:visible;padding:0;white-space:normal;line-height:1.6;font:14px/1.6 'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;color:#29272e;text-align:left}
#notice:has(.auth-content) .auth-content *,#notice:has(.auth-content) .auth-content *:before,#notice:has(.auth-content) .auth-content *:after{box-sizing:border-box}
#notice:has(.auth-content) .auth-content :is(h2,p){margin:0}
#notice:has(.auth-content) .auth-content :is(button,input,select){font-family:inherit;-webkit-tap-highlight-color:transparent}
#notice:has(.auth-content) .auth-content [hidden]{display:none!important}
#notice:has(.auth-content) .auth-story{position:relative;display:flex;flex-direction:column;min-width:0;min-height:544px;padding:31px 32px 28px;border-right:1px solid #e8e3ef;background:#f0edf6;overflow:hidden}
#notice:has(.auth-content) .auth-brand{display:flex;align-items:center;gap:9px;font-size:17px;font-weight:650;letter-spacing:-.4px}
#notice:has(.auth-content) .auth-brand img{width:33px;height:33px;object-fit:contain}
#notice:has(.auth-content) .auth-story-copy{padding-top:41px;position:relative;z-index:1}
#notice:has(.auth-content) .auth-story .auth-eyebrow{font-size:11px;color:#74677f;margin-bottom:12px}
#notice:has(.auth-content) .auth-story h2{font-size:32px;font-weight:600;line-height:1.52;letter-spacing:-1px;color:#37303f}
#notice:has(.auth-content) .auth-story-copy>p:last-child{font-size:12px;color:#74677f;line-height:1.9;margin-top:15px}
#notice:has(.auth-content) .auth-cover-stack{position:relative;height:145px;margin-top:31px;isolation:isolate;flex:1}
#notice:has(.auth-content) .auth-cover-stack img{position:absolute;width:116px;height:116px;object-fit:cover;border:3px solid #fff;border-radius:14px;box-shadow:0 9px 22px #34224818}
#notice:has(.auth-content) .auth-cover-stack img:nth-child(1){left:-5px;top:17px;transform:rotate(-12deg)}
#notice:has(.auth-content) .auth-cover-stack img:nth-child(2){left:86px;top:2px;transform:rotate(3deg);z-index:1}
#notice:has(.auth-content) .auth-cover-stack img:nth-child(3){right:-8px;top:24px;transform:rotate(12deg)}
#notice:has(.auth-content) .auth-story-note{display:flex;align-items:center;gap:10px;font-size:10px;color:#74677f;margin-top:23px}
#notice:has(.auth-content) .auth-story-note i{height:3px;width:3px;border-radius:50%;background:#b8aec3}
#notice:has(.auth-content) .auth-panel{min-width:0;padding:54px 37px 30px;display:flex;flex-direction:column;justify-content:center;background:#fff}
#notice:has(.auth-content) .auth-header{text-align:left;margin:0 0 25px}
#notice:has(.auth-content) .auth-header .auth-icon{display:none}
#notice:has(.auth-content) .auth-header h2{font-size:28px;line-height:1.4;font-weight:600;letter-spacing:-.6px;color:#29272e;margin:0 0 8px}
#notice:has(.auth-content) .auth-header .auth-subtitle{font-size:12px;line-height:1.8;color:#74677f;margin:0}
#notice:has(.auth-content) .auth-tabs{display:flex;gap:22px;align-items:stretch;padding:0;margin:0 0 27px;border-bottom:1px solid #ece8f0;border-radius:0;background:none}
#notice:has(.auth-content) .auth-tabs .auth-tab{flex:none;position:relative;border:0;border-radius:0;min-height:41px;padding:0 0 12px;margin:0;background:none;color:#74677f;font-size:13px;font-weight:400;box-shadow:none;transition:color 160ms ease}
#notice:has(.auth-content) .auth-tabs .auth-tab.selected{background:none;color:#7149a4;font-weight:600;box-shadow:none}
#notice:has(.auth-content) .auth-tabs .auth-tab.selected:after{content:'';height:2px;position:absolute;bottom:-1px;left:0;right:0;background:#8051c5;border-radius:2px}
#notice:has(.auth-content) form.auth-form{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:20px!important;width:100%;margin:0!important;padding:0}
#notice:has(.auth-content) .auth-phone-row{display:grid;grid-template-columns:74px minmax(0,1fr);align-items:start;gap:8px}
#notice:has(.auth-content) .auth-phone-row>.auth-label{grid-column:1/-1;margin:0}
#notice:has(.auth-content) .auth-content .auth-label{display:block;margin:0 0 8px;font-size:12px;font-weight:500;color:#665b72;line-height:1.6}
#notice:has(.auth-content) .auth-content input.auth-input,#notice:has(.auth-content) .auth-content select.auth-country{height:47px;min-height:47px;min-width:0;width:100%;padding:0 13px;border:1px solid #e5dfec!important;border-radius:8px;background:#fbfafd;color:#332b3e;font-size:14px;box-shadow:none;outline:none;transition:border-color 160ms ease,background-color 160ms ease,box-shadow 160ms ease}
#notice:has(.auth-content) .auth-content select.auth-country{padding-left:12px;padding-right:6px;font-size:13px;cursor:pointer}
#notice:has(.auth-content) .auth-content input.auth-input::placeholder{color:#74677f;font-size:12px}
#notice:has(.auth-content) .auth-content input.auth-input:focus,#notice:has(.auth-content) .auth-content select.auth-country:focus{border-color:#9775bf!important;background:#fff;box-shadow:0 0 0 3px #8051c50c}
#notice:has(.auth-content) .auth-code-row{display:flex;gap:8px;align-items:stretch}
#notice:has(.auth-content) .auth-code-row>.auth-input{flex:1;min-width:0}
#notice:has(.auth-content) .auth-content .auth-code-button{min-width:100px;min-height:47px;padding:0 12px;border:1px solid #e5dbf2;border-radius:8px;background:#f1ebf8;color:#7952a6;font-size:12px;white-space:nowrap;transition:background-color 160ms ease,transform 160ms ease}
#notice:has(.auth-content) .auth-content .auth-code-button:hover{background:#e9def5}
#notice:has(.auth-content) .auth-content .auth-submit.primary{display:flex;align-items:center;justify-content:center;width:100%;height:47px;min-height:47px;padding:0 16px;margin:5px 0 0;border:1px solid #8051c5;border-radius:9px;background:#8051c5;color:#fff;font-size:14px;line-height:1.4;font-weight:600;box-shadow:0 5px 13px #8051c515;transition:background-color 160ms ease,transform 160ms ease}
#notice:has(.auth-content) .auth-content .auth-submit.primary:hover{background:#7142b4;border-color:#7142b4}
#notice:has(.auth-content) .auth-content .auth-submit.primary:active,#notice:has(.auth-content) .auth-content .auth-code-button:active{transform:scale(.98)}
#notice:has(.auth-content) .auth-content .auth-error{font-size:12px;line-height:1.75;margin:0;padding:10px 12px;border:1px solid #f3dce1;border-radius:8px;background:#fff5f6;color:#ad536b;overflow-wrap:anywhere}
#notice:has(.auth-content) .auth-content .auth-sync-note{display:flex;gap:6px;align-items:center;justify-content:center;font-size:10px;line-height:1.7;color:#74677f;margin-top:24px}
#notice:has(.auth-content) .auth-sync-note svg{width:13px;height:13px;flex:none}
#notice:has(.auth-content) .auth-content button:disabled{opacity:.5;cursor:wait;box-shadow:none}
#notice:has(.auth-content) .auth-content button:focus-visible,#notice:has(.auth-content) .notice-close:focus-visible{outline:2px solid #8051c5;outline-offset:4px}
#notice:has(.auth-content) .auth-content button:focus:not(:focus-visible){outline:none}
@media(max-width:700px){#notice:has(.auth-content){width:min(430px,calc(100vw - 32px));max-height:calc(100dvh - 32px);border-radius:17px}#notice .notice-content.auth-content{display:block}#notice:has(.auth-content) .auth-story{min-height:0;padding:25px 26px 21px;border:0;border-bottom:1px solid #e8e3ef;display:block}#notice:has(.auth-content) .auth-story-copy,#notice:has(.auth-content) .auth-cover-stack,#notice:has(.auth-content) .auth-story-note{display:none}#notice:has(.auth-content) .auth-brand{font-size:18px;gap:8px}#notice:has(.auth-content) .auth-brand img{width:31px;height:31px}#notice:has(.auth-content) .notice-actions{top:22px;right:22px}#notice:has(.auth-content) .notice-close{width:44px;height:44px;min-width:44px;min-height:44px}#notice:has(.auth-content) .auth-panel{padding:27px 26px 25px}#notice:has(.auth-content) .auth-header{margin-bottom:22px}#notice:has(.auth-content) .auth-header h2{font-size:26px}#notice:has(.auth-content) .auth-header .auth-subtitle{font-size:12px}#notice:has(.auth-content) .auth-tabs{margin-bottom:24px;gap:24px}#notice:has(.auth-content) .auth-content .auth-sync-note{font-size:10px;margin-top:23px}}
@media(max-width:360px){#notice:has(.auth-content){width:calc(100vw - 24px)}#notice:has(.auth-content) .auth-story{padding:22px 20px 18px}#notice:has(.auth-content) .auth-panel{padding:24px 20px}#notice:has(.auth-content) .notice-actions{top:19px;right:18px}#notice:has(.auth-content) .auth-phone-row{grid-template-columns:68px minmax(0,1fr)}#notice:has(.auth-content) .auth-content .auth-code-button{min-width:94px;padding:0 9px}#notice:has(.auth-content) .auth-header h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){#notice:has(.auth-content) .auth-content *,#notice:has(.auth-content) .notice-close{transition:none!important}#notice:has(.auth-content) .auth-content button:active{transform:none!important}}

/* reading-redesign.css */
/* Redesigned Editorial Reading Workbench (2026-11) */
.main:has(.reader-root) #content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 28px 24px !important;
  background: transparent;
}
.lr-site-app[data-page='play']:has(.reader-root) > .main { padding: 0; }

.reader-root {
  --reader-ink: #121629;
  --reader-secondary: #3b435b;
  --reader-muted: #646d82;
  --reader-line: #eaeff7;
  --reader-accent: #584cf4;
  --reader-paper: #ffffff;
  width: 100%;
  max-width: 1460px;
  height: calc(100dvh - 44px);
  min-height: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--reader-ink);
  font: 14px/1.7 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}
.reader-root * { box-sizing: border-box; }
.reader-root [hidden] { display: none !important; }
.reader-root button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 150ms ease;
}
.reader-root button:disabled { opacity: .4; cursor: default; }
.reader-root button:focus-visible, .reader-root .reader-paper:focus-visible { outline: 2px solid var(--reader-accent); outline-offset: 2px; }
.reader-root button:focus:not(:focus-visible) { outline: none; }
.reader-root button .icon { width: 17px; height: 17px; display: block; flex: none; }

/* ---------- Top Control Bar ---------- */
.reader-root .reader-top {
  display: flex;
  flex: none;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid var(--reader-line);
  border-radius: 22px;
  box-shadow: 0 6px 20px rgba(18, 22, 41, 0.038);
  color: var(--reader-ink);
}
.reader-root .reader-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto !important;
  min-width: 0;
  min-height: 38px;
  padding: 7px 14px 7px 11px !important;
  border-radius: 999px;
  background: #f4f6fb;
  border: 1px solid var(--reader-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--reader-ink);
  white-space: nowrap;
  flex: none;
}
.reader-root .reader-back:hover {
  background: #eeebff;
  border-color: rgba(88, 76, 244, 0.24);
  color: var(--reader-accent);
}
.reader-root .reader-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-left: 16px;
  border-left: 1px solid var(--reader-line);
  font-size: 16px;
  white-space: nowrap;
}
.reader-root .reader-brand > strong { font-weight: 700; letter-spacing: -0.2px; }

.reader-root .reader-settings {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.reader-root .reader-settings > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid var(--reader-line);
  background: #f6f7fb;
  border-radius: 999px;
  color: var(--reader-secondary);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.reader-root .reader-settings > button:hover {
  background: #eef1f9;
  color: var(--reader-ink);
}
.reader-root .reader-settings > button[aria-pressed=true] {
  background: var(--reader-accent);
  border-color: var(--reader-accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(88, 76, 244, 0.25);
}
.reader-root .reader-font-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #f6f7fb;
  border: 1px solid var(--reader-line);
  border-radius: 999px;
  padding: 2px 4px;
}
.reader-root .reader-font-tools button {
  min-width: 34px;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--reader-secondary);
}
.reader-root .reader-font-tools button:hover { background: #ffffff; color: var(--reader-ink); }
.reader-root .reader-font-tools output {
  min-width: 28px;
  text-align: center;
  font: 600 12.5px Lexend, sans-serif;
  color: var(--reader-ink);
}
.reader-root .reader-spacing small {
  font: 600 11.5px Lexend, sans-serif;
  color: var(--reader-accent);
  min-width: 22px;
  text-align: right;
}

/* ---------- Split Workspace ---------- */
.reader-root .reader-workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 396px;
  grid-template-rows: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.reader-root .reader-paper {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 30px;
  scrollbar-width: thin;
  scrollbar-color: #d8dfee transparent;
  border: 1px solid var(--reader-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(18, 22, 41, 0.045);
  padding: 32px clamp(26px, 4vw, 56px);
  color: var(--reader-ink);
}

/* Editorial Magazine Masthead */
.reader-root .reader-masthead {
  padding: 24px 26px;
  margin-bottom: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f5f2ff 0%, #ffffff 55%, #fffaf4 100%);
  border: 1px solid var(--reader-line);
  box-shadow: 0 6px 20px rgba(18, 22, 41, 0.03);
}
.reader-root .reader-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 11px Lexend, 'PingFang SC', sans-serif;
  letter-spacing: 0.8px;
  color: var(--reader-muted);
}
.reader-root .reader-paper h1 {
  margin: 14px 0 0;
  font: 800 clamp(24px, 2.2vw, 32px)/1.3 Lexend, 'PingFang SC', sans-serif;
  letter-spacing: -0.7px;
  color: var(--reader-ink);
  overflow-wrap: anywhere;
}
.reader-root .reader-original-title {
  margin: 8px 0 0;
  font: 600 14px/1.6 'PingFang SC', sans-serif;
  color: var(--reader-muted);
}
.reader-root .reader-byline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--reader-muted);
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--reader-line);
}

.reader-root .reader-text { --reading-font: 20px; --reading-leading: 1.9; }
.reader-root .reader-paragraph {
  position: relative;
  padding: 20px 68px 22px 18px;
  margin: 0 0 8px;
  border: 1.5px solid transparent;
  border-bottom-color: #f1f4fa;
  border-radius: 18px;
  scroll-margin: 24px;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.reader-root .reader-paragraph:hover {
  background: #fafbfe;
  border-color: var(--reader-line);
}
.reader-root .reader-paragraph.selected {
  background: #ffffff;
  border-color: rgba(88, 76, 244, 0.25);
  box-shadow: 0 10px 28px rgba(88, 76, 244, 0.07);
}
.reader-root .reader-para-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #eeebff;
  color: var(--reader-accent);
  font-family: Lexend, sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.reader-root .reader-copy {
  margin: 0;
  font: var(--reading-font)/var(--reading-leading) Georgia, 'Times New Roman', serif;
  letter-spacing: 0.01px;
  color: #1c2237;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.reader-root .reader-word {
  display: inline;
  min-width: 0;
  min-height: 0;
  margin: 0 -1px;
  padding: 0 1px;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  color: inherit;
  background: none;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
}
.reader-root .reader-word:hover, .reader-root .reader-word:focus-visible {
  background: rgba(88, 76, 244, 0.09);
  color: var(--reader-accent);
}

.reader-root .reader-paragraph-actions {
  position: absolute;
  right: 12px;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 10px;
  background: #f6f7fb;
  opacity: 0;
  transition: opacity 140ms ease;
}
.reader-root .reader-paragraph:hover .reader-paragraph-actions,
.reader-root .reader-paragraph:focus-within .reader-paragraph-actions,
.reader-root .reader-paragraph.selected .reader-paragraph-actions {
  opacity: 1;
}
.reader-root .reader-paragraph-actions > button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 6px;
  border-radius: 8px;
  color: var(--reader-muted);
}
.reader-root .reader-paragraph-actions > button:hover {
  background: #eeebff;
  color: var(--reader-accent);
}
.reader-root .reader-paragraph-actions > button[aria-pressed=true] {
  color: var(--reader-accent);
  background: #eeebff;
}
.reader-root .reader-paragraph-actions > .reader-save[aria-pressed=true] svg { fill: currentColor; }

.reader-root .reader-translation-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 14px 18px;
  border: 1px solid #e4e0fb;
  border-radius: 16px;
  background: #f7f5ff;
  color: var(--reader-muted);
}
.reader-root .reader-translation-bar > div { flex: 1; min-width: 150px; }
.reader-root .reader-translation-bar strong { display: block; font-size: 12.5px; font-weight: 700; color: var(--reader-accent); }
.reader-root .reader-translation-bar p { margin: 3px 0 0; font-size: 12px; line-height: 1.7; }
.reader-root .reader-translation-bar > button {
  flex: none;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid rgba(88, 76, 244, 0.25);
  border-radius: 999px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: var(--reader-accent);
}

.reader-root .reader-translation {
  margin: 14px 0 0;
  padding: 13px 16px 14px;
  border: 1px solid var(--reader-line);
  border-left: 3.5px solid var(--reader-accent);
  border-radius: 14px;
  background: #f8f9fd;
}
.reader-root .reader-translation-label {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--reader-accent);
  letter-spacing: 0.8px;
  line-height: 1.4;
}
.reader-root .reader-translation-copy {
  margin: 5px 0 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: #4a536b;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.reader-root .reader-paper-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 24px;
  margin-top: 18px;
  border-top: 1px solid var(--reader-line);
  font-size: 12.5px;
  color: var(--reader-muted);
}
.reader-root .reader-progress {
  padding: 3px 10px;
  border-radius: 999px;
  background: #eeebff;
  color: var(--reader-accent);
  font-family: Lexend, sans-serif;
  font-weight: 700;
}

/* ---------- Right AI Sentence Inspector ---------- */
.reader-root .reader-inspector {
  position: relative;
  inset: auto;
  width: auto;
  min-height: 0;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--reader-line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(18, 22, 41, 0.045);
}
.reader-root .reader-inspector-heading {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  border-bottom: 1px solid var(--reader-line);
  padding: 10px 18px 10px 20px;
  background: linear-gradient(135deg, #f6f4ff 0%, #ffffff 68%);
}
.reader-root .reader-inspector-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--reader-ink);
}
.reader-root .reader-inspector-heading h2 .icon { width: 19px; height: 19px; color: var(--reader-accent); }
.reader-root .reader-inspector-close {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: #f4f6fb;
  color: var(--reader-secondary);
}

.reader-root .reader-explanation {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 22px;
  font-size: 13.5px;
  line-height: 1.85;
  white-space: normal;
  overflow-wrap: anywhere;
}
.reader-root .reader-guide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 13px;
  line-height: 1.85;
  color: var(--reader-muted);
  padding: 28px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8f7ff 0%, #fafbfe 100%);
  border: 1px dashed #dfdcf7;
}
.reader-root .reader-guide > span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: #ffffff;
  color: var(--reader-accent);
  box-shadow: 0 6px 18px rgba(88, 76, 244, 0.1);
  margin-bottom: 16px;
}
.reader-root .reader-guide > span .icon { width: 23px; height: 23px; }
.reader-root .reader-guide > strong { font-weight: 700; color: var(--reader-ink); font-size: 17px; }
.reader-root .reader-guide p { margin: 10px 0 12px; max-width: 26ch; }
.reader-root .reader-guide small {
  padding: 4px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--reader-line);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--reader-accent);
}

.reader-root .reader-expl-cue {
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--reader-line);
  border-left: 3.5px solid var(--reader-accent);
  border-radius: 14px;
  background: #f8f9fd;
}
.reader-root .reader-expl-cue small {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--reader-accent);
  margin-bottom: 6px;
}
.reader-root .reader-expl-cue p {
  margin: 0;
  font: 500 15.5px/1.75 Lexend, 'PingFang SC', sans-serif;
  color: var(--reader-ink);
}
.reader-root .reader-retry, .reader-root .pf-expl-cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--reader-accent);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
}

.reader-root .teaching-section {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--reader-line);
  border-radius: 16px;
  background: #fcfdff;
}
.reader-root .teaching-section:first-child { margin-top: 0; }
.reader-root .teaching-section h3 {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eeebff;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--reader-accent);
}
.reader-root .teaching-section h3:before { display: none; }
.reader-root .teaching-legacy, .reader-root .teaching-grammar p { white-space: pre-wrap; }
.reader-root .teaching-word { display: block; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #f0f3f9; line-height: 1.75; }
.reader-root .teaching-word:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.reader-root .teaching-word strong { font-family: Lexend, 'PingFang SC', sans-serif; color: var(--reader-ink); font-weight: 600; }
.reader-root .teaching-word small { margin-left: 8px; color: var(--reader-muted); }
.reader-root .teaching-word span { display: block; margin-top: 4px; font-size: 13px; color: var(--reader-secondary); }
.reader-root .teaching-phrase, .reader-root .teaching-grammar { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #f0f3f9; }
.reader-root .teaching-phrase:last-child, .reader-root .teaching-grammar:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.reader-root .teaching-phrase strong, .reader-root .teaching-grammar strong { display: block; font-size: 13.5px; font-weight: 700; color: var(--reader-ink); }
.reader-root .teaching-phrase p, .reader-root .teaching-grammar p { font-size: 13.5px; line-height: 1.85; color: var(--reader-secondary); margin: 6px 0 0; }
.reader-root .teaching-example { padding-left: 12px; border-left: 2.5px solid #d5d0fb; font-family: Lexend, 'PingFang SC', sans-serif; }
.reader-root .teaching-phrase .teaching-muted { margin-top: 2px; padding-left: 12px; border-left: 2.5px solid #d5d0fb; color: var(--reader-muted); }

.reader-root.is-inspector-collapsed .reader-workspace { grid-template-columns: minmax(0, 1fr) 46px; }
.reader-root .reader-inspector-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-direction: column;
  min-width: 46px;
  padding: 16px 8px;
  border: 1px solid var(--reader-line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--reader-accent);
  box-shadow: 0 6px 20px rgba(18, 22, 41, 0.05);
}
.reader-root .reader-inspector-toggle > span { writing-mode: vertical-rl; letter-spacing: 2px; font-size: 12px; font-weight: 600; }
.reader-root .reader-mobile-open, .reader-root .reader-inspector-scrim { display: none; }
.reader-root .reader-announcement { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media(max-width: 1150px) {
  .reader-root .reader-workspace { grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; }
  .reader-root .reader-paper { padding: 26px 28px; }
}
@media(max-width: 760px) {
  .main:has(.reader-root) #content { padding: 12px 12px 84px !important; }
  .reader-root { height: auto; min-height: 0; }
  .reader-root .reader-top { flex-wrap: wrap; gap: 10px 12px; padding: 12px 14px; border-radius: 18px; }
  .reader-root .reader-settings { order: 3; width: 100%; justify-content: space-between; gap: 6px; }
  .reader-root .reader-workspace, .reader-root.is-inspector-collapsed .reader-workspace { display: block; }
  .reader-root .reader-paper { height: auto; min-height: 55dvh; overflow: visible; padding: 20px 18px; border-radius: 20px; }
  .reader-root .reader-masthead { padding: 18px; border-radius: 16px; }
  .reader-root .reader-paragraph { padding: 16px 12px 18px; }
  .reader-root .reader-paragraph-actions { position: static; margin-top: 10px; justify-content: flex-end; opacity: 1; background: transparent; }
  .reader-root .reader-inspector { display: none !important; }
  .reader-root .reader-inspector-toggle { display: none !important; }
  .reader-root .reader-mobile-open {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 90;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #6b5ff8 0%, #584cf4 100%);
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(88, 76, 244, 0.3);
    font-size: 13px;
  }
  .reader-root.is-mobile-inspecting .reader-inspector:not([hidden]) {
    position: fixed;
    z-index: 111;
    inset: auto 10px 10px;
    width: auto;
    height: min(68dvh, 620px);
    max-height: calc(100dvh - 50px);
    display: flex !important;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(18, 22, 41, 0.25);
    background: #ffffff;
  }
  .reader-root.is-mobile-inspecting .reader-inspector-scrim:not([hidden]) {
    position: fixed;
    display: block;
    z-index: 110;
    inset: 0;
    background: rgba(18, 22, 41, 0.35);
    backdrop-filter: blur(3px);
  }
  .reader-root.is-mobile-inspecting .reader-mobile-open { display: none; }
}

/* welcome-entry.css */
.lr-welcome{position:fixed;inset:0;z-index:1500;background:#faf8f4;color:#20263c;overflow:auto;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}.lr-welcome *{box-sizing:border-box}.lr-welcome button{font:inherit;cursor:pointer}.lr-welcome-brand{max-width:1420px;margin:auto;padding:28px 5vw;display:flex;align-items:center;gap:11px}.lr-welcome-brand strong{font-size:22px;letter-spacing:-.6px}.lr-welcome-brand>span{margin-left:auto;font-size:13px;color:#787c89}.lr-welcome-body{min-height:calc(100dvh - 100px);max-width:1440px;margin:auto;padding:3vh 4vw 8vh;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.8fr);gap:4vw;align-items:center}.lr-welcome-stage{position:relative;aspect-ratio:1.14;min-width:0;isolation:isolate}.lr-welcome-scene{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transform:translateY(16px) scale(.985);transition:opacity 480ms ease,transform 650ms cubic-bezier(.23,1,.32,1),visibility 650ms}.lr-welcome-scene.is-current{opacity:1;visibility:visible;transform:none}.lr-welcome-landscape{position:absolute;width:160%;max-width:none;height:100%;object-fit:cover;object-position:left;clip-path:inset(0 37.5% 0 0);left:-1%;top:0}.lr-welcome-resource{position:absolute;display:grid;grid-template-columns:32px 1fr;gap:4px 10px;align-items:center;padding:15px 20px;background:#fff;border:1px solid #e9e6ef;border-radius:20px;box-shadow:0 12px 35px #33305a0b;animation:lr-welcome-drift 5.8s ease-in-out infinite}.lr-welcome-resource svg{width:24px;height:24px;grid-row:span 2;color:#6b57d4}.lr-welcome-resource span{font-size:14px;font-weight:600}.lr-welcome-resource small{font-size:11px;color:#7c7d89}.lr-welcome-resource--audio{left:3%;top:9%;rotate:-5deg}.lr-welcome-resource--read{right:2%;bottom:13%;rotate:4deg;animation-delay:-2s}.lr-welcome-copy{max-width:465px;position:relative}.lr-welcome-kicker{color:#7661bc;font-size:12px;font-weight:600;letter-spacing:3px;margin:0 0 22px}.lr-welcome-copy h1{font-size:clamp(30px,3.1vw,46px);line-height:1.3;letter-spacing:-1.3px;margin:0 0 19px;font-weight:650;text-wrap:balance;min-height:2.6em}.lr-welcome-description{color:#747785;font-size:15px;line-height:1.8;min-height:3.6em;margin:0 0 17px}.lr-welcome-dots{display:flex;gap:4px;margin:0 0 35px}.lr-welcome-dots button{border:0;background:none;padding:9px 5px;border-radius:8px}.lr-welcome-dots span{display:block;width:6px;height:6px;border-radius:10px;background:#d8d4df;transition:width 220ms ease,background-color 220ms ease}.lr-welcome-dots [aria-pressed=true] span{width:24px;background:#6d56d7}.lr-welcome-actions{display:grid;gap:12px}.lr-welcome-actions button{border-radius:16px;min-height:53px;font-size:15px;font-weight:600;transition:transform 120ms ease,background-color 160ms ease}.lr-welcome-actions button:active{transform:scale(.985)}.lr-welcome-primary{color:white;background:#6752cf;border:1px solid #6752cf;box-shadow:0 7px 20px #6752cf22}.lr-welcome-guest{border:1px solid #e1dce9;background:#fff;color:#55556b}.lr-welcome-footnote{font-size:11px;color:#92909c;line-height:1.7;margin:22px 0 0}.lr-welcome button:focus-visible{outline:2px solid #6d56d7;outline-offset:4px}.lr-welcome-caption{position:absolute;top:12%;left:8%;right:14%;padding:30px;border-radius:25px;background:#efecfc;box-shadow:0 15px 35px #665b9112;transform:rotate(-4deg)}.lr-welcome-caption>span,.lr-welcome-notebook>span{font-size:11px;letter-spacing:1px;color:#7f748f}.lr-welcome-caption>p{font-family:Georgia,serif;font-size:clamp(21px,2.2vw,32px);line-height:1.4;color:#33304c}.lr-welcome-caption em{font-style:normal;color:#7451d5}.lr-welcome-caption>small{font-size:13px;color:#777284}.lr-welcome-vocab{display:flex;gap:16px;border-top:1px solid #ded7ef;padding-top:17px;margin-top:25px;align-items:center}.lr-welcome-vocab b{font-size:20px}.lr-welcome-vocab span{font-size:13px;color:#7b6e89}.lr-welcome-answer{position:absolute;right:4%;bottom:7%;width:60%;border:1px solid #e9e2d6;border-radius:21px;background:#fffdf8;box-shadow:0 20px 45px #6a537116;transform:rotate(3deg);padding:23px}.lr-welcome-answer>span{font-size:11px;color:#887d75;display:flex;gap:7px;align-items:center}.lr-welcome-answer svg{width:16px;height:16px}.lr-welcome-answer p{font-size:13px;line-height:1.7}.lr-welcome-answer small{display:block;border-top:1px solid #eee8e0;padding-top:12px;font-size:11px;color:#8f847c}.lr-welcome-notebook{position:absolute;inset:10% 10% 14%;padding:35px;border-radius:25px;background:#f3eee2;box-shadow:-14px 14px 0 -4px #e5dfef,0 25px 50px #5d4a6c12;transform:rotate(-4deg);background-image:repeating-linear-gradient(transparent,transparent 27px,#e2dac632 28px)}.lr-welcome-notebook>span{display:flex;gap:8px;align-items:center}.lr-welcome-notebook svg{width:15px;height:15px}.lr-welcome-notebook h3{font-family:Georgia,serif;font-size:clamp(28px,3vw,42px);line-height:1.25;margin:27px 0;color:#3b3647}.lr-welcome-notebook>div{border-top:1px solid #dcd3c5;padding-top:18px;font-size:13px}.lr-welcome-notebook>div p{line-height:1.9;color:#7f746e}.lr-welcome-notebook footer{display:flex;gap:8px;align-items:center;font-size:11px;color:#877b74}.lr-welcome-resume{position:absolute;right:0;bottom:4%;width:64%;background:#fff;padding:21px;border-radius:17px;border:1px solid #e9e6ee;box-shadow:0 15px 40px #5b4d7211;rotate:3deg}.lr-welcome-resume>span{display:flex;align-items:center;gap:10px;font-size:12px}.lr-welcome-resume svg{height:16px;width:16px;color:#7461bd}.lr-welcome-resume>div{height:4px;background:#efedf4;border-radius:8px;margin:15px 0 10px}.lr-welcome-resume i{display:block;width:58%;height:4px;background:#9b8bd4;border-radius:8px}.lr-welcome-resume small{font-size:10px;color:#9993a1}@keyframes lr-welcome-drift{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@media(max-width:760px){.lr-welcome-brand{padding:19px 22px}.lr-welcome-brand strong{font-size:20px}.lr-welcome-brand>span{display:none}.lr-welcome-body{min-height:calc(100dvh - 75px);display:flex;flex-direction:column;padding:0 23px max(22px,env(safe-area-inset-bottom));gap:7px;justify-content:center}.lr-welcome-stage{width:min(100%,430px);aspect-ratio:1.17;flex:0 1 auto;max-height:43dvh}.lr-welcome-copy{max-width:440px;width:100%;text-align:center}.lr-welcome-kicker{margin:10px 0 12px;font-size:10px;letter-spacing:2px}.lr-welcome-copy h1{font-size:26px;letter-spacing:-.7px;min-height:2.6em;margin-bottom:12px}.lr-welcome-description{font-size:13px;margin-bottom:9px;min-height:3.6em}.lr-welcome-dots{justify-content:center;margin-bottom:15px}.lr-welcome-actions{gap:10px}.lr-welcome-actions button{min-height:49px;border-radius:15px;font-size:14px}.lr-welcome-footnote{font-size:10px;margin-top:16px}.lr-welcome-caption{padding:20px;top:7%;left:7%;right:12%;border-radius:20px}.lr-welcome-caption>p{font-size:23px;margin:15px 0}.lr-welcome-vocab{margin-top:14px;padding-top:12px}.lr-welcome-answer{padding:14px;bottom:2%;width:61%}.lr-welcome-answer p{font-size:10px;margin:9px 0}.lr-welcome-answer small{font-size:9px}.lr-welcome-notebook{inset:7% 12% 11%;padding:23px}.lr-welcome-notebook h3{font-size:29px;margin:18px 0}.lr-welcome-notebook>div{font-size:11px;padding-top:11px}.lr-welcome-resume{padding:15px;bottom:0}.lr-welcome-resource{padding:11px 13px;grid-template-columns:24px 1fr;border-radius:15px}.lr-welcome-resource span{font-size:11px}.lr-welcome-resource small{font-size:9px}.lr-welcome-resource svg{width:20px;height:20px}.lr-welcome-resource--audio{left:1%;top:5%}.lr-welcome-resource--read{right:0;bottom:10%}}
@media(max-height:650px) and (min-width:761px){.lr-welcome-body{padding-top:0;padding-bottom:25px}.lr-welcome-stage{max-height:440px}.lr-welcome-copy h1{font-size:33px}.lr-welcome-dots{margin-bottom:20px}}
@media(prefers-reduced-motion:reduce){.lr-welcome-scene,.lr-welcome-actions button,.lr-welcome-dots span{transition:none}.lr-welcome-resource{animation:none}}

.lr-settings-content{padding:30px!important;max-width:560px!important;width:min(560px,calc(100vw - 30px));color:#273044}.lr-settings-heading{margin-bottom:23px}.lr-settings-heading>p{font-size:10px;letter-spacing:2px;color:#887d9e;margin:0 0 14px}.lr-settings-heading h2{font-size:25px;letter-spacing:-.6px;margin:0 0 9px}.lr-settings-heading>span,.lr-settings-note{color:#83818e;font-size:13px;line-height:1.8}.lr-settings-body{display:grid;gap:10px}.lr-settings-row{display:flex;align-items:center;gap:13px;min-height:61px;padding:14px;border:1px solid #eeeaf2;background:#fbfafc;border-radius:14px;text-align:left;color:#373448;cursor:pointer}.lr-settings-row>span{display:grid;place-items:center;width:30px;height:30px;color:#8a78b8}.lr-settings-row svg{width:19px;height:19px}.lr-settings-row>svg{margin-left:auto;color:#a8a0b5;width:16px}.lr-settings-row strong{font-size:14px;font-weight:500}.lr-help-question{border-bottom:1px solid #ece8f1;padding:14px 2px}.lr-help-question summary{cursor:pointer;font-size:14px;font-weight:600}.lr-help-question p{font-size:13px;line-height:1.8;color:#777382;margin-bottom:0}.lr-contact-form{display:grid;gap:17px}.lr-contact-form label{display:grid;gap:9px;font-size:13px;color:#6d667a}.lr-contact-form input,.lr-contact-form textarea,.lr-contact-form select{width:100%;font:inherit;padding:12px;border:1px solid #dfd9e8;border-radius:11px;background:#fff;color:#322c43}.lr-contact-form button{min-height:48px;border-radius:12px;border:0;font:inherit;font-size:14px;cursor:pointer}.lr-contact-form button:disabled{opacity:.65}.lr-settings-row:focus-visible{outline:2px solid #8b75c0;outline-offset:3px}

/* sentence-chat.css */
.sentence-chat, .sentence-chat-history, .sentence-chat-dock {
  --sc-ink: #121629;
  --sc-muted: #646d82;
  --sc-line: #eaeff7;
  --sc-paper: #ffffff;
  --sc-accent: #584cf4;
  color: var(--sc-ink);
  font: 14px/1.7 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-sizing: border-box;
}
.sentence-chat *, .sentence-chat-history *, .sentence-chat-dock * { box-sizing: border-box; }
.sentence-chat {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--sc-line);
  min-width: 0;
}
.sentence-chat-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eeebff;
  color: var(--sc-accent);
  font-size: 11.5px;
  font-weight: 700;
}
.sentence-chat-turns:empty { display: none; }
.sentence-chat-turn {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8f9fd;
  border: 1px solid var(--sc-line);
  overflow-wrap: anywhere;
}
.sentence-chat-question {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sc-ink);
  white-space: pre-wrap;
}
.sentence-chat-answer {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: #3f485f;
  white-space: pre-wrap;
}
.sentence-chat-answer[data-status=failed], .sentence-chat-error { color: #d63649; }
.sentence-chat-answer[data-status=pending] { color: var(--sc-accent); }
.sentence-chat-form { margin: 12px 0 0; }
.sentence-chat-label { display: block; font-size: 12px; font-weight: 600; color: var(--sc-muted); }
.sentence-chat-input {
  display: block;
  width: 100%;
  min-height: 82px;
  max-height: 220px;
  resize: vertical;
  margin-top: 7px;
  padding: 11px 14px;
  border: 1.5px solid var(--sc-line);
  border-radius: 14px;
  background: #fafbfe;
  color: var(--sc-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  scroll-margin-block: 16px;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.sentence-chat-input:focus {
  border-color: var(--sc-accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(88, 76, 244, 0.1);
  outline: none;
}
.sentence-chat-input::placeholder { color: #939bb0; }
.sentence-chat-history button:focus-visible, .sentence-chat-dock button:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
.sentence-chat-input[readonly] { background: #f3f5fa; }
.sentence-chat-status { margin: 7px 0 0; min-height: 0; color: var(--sc-muted); font-size: 12px; }
.sentence-chat-status:empty { display: none; }
.sentence-chat .sentence-chat-save-retry {
  display: inline-flex;
  border: 0;
  background: transparent;
  color: var(--sc-accent);
  padding: 6px 0;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Floating AI History Dock Pill — clean full pill at bottom-right instead of half-clipped circle */
.sentence-chat-dock {
  position: fixed;
  z-index: 1100;
  top: 50%;
  right: 0;
  width: 44px;
  height: 44px;
  clip-path: inset(-20px 0 -20px -20px);
  pointer-events: none;
}
.sentence-chat-dock[hidden] { display: none !important; }
.sentence-chat-dock .sentence-chat-dock-open {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid rgba(88, 76, 244, 0.22);
  border-radius: 50%;
  background: #ffffff;
  color: var(--sc-accent);
  box-shadow: 0 4px 16px rgba(88, 76, 244, 0.16);
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
  transform: translateX(20px);
  transition: transform 260ms cubic-bezier(.32, .72, 0, 1), box-shadow 200ms ease, background-color 200ms ease;
}
.sentence-chat-dock .sentence-chat-dock-open:hover {
  background: #eeebff;
  transform: translateX(4px);
  box-shadow: 0 8px 22px rgba(88, 76, 244, 0.24);
}
.sentence-chat-dock .sentence-chat-dock-open svg { display: block; width: 20px; height: 20px; }
.sentence-chat-dock[data-state=reply] .sentence-chat-dock-open {
  background: var(--sc-accent);
  color: #ffffff;
  transform: translateX(0);
}
.sentence-chat-dock .sentence-chat-dock-open:active { transform: scale(.95); }
.sentence-chat-dock.is-dragging .sentence-chat-dock-open { cursor: grabbing; transition: none; }

.sentence-chat-history {
  position: fixed;
  inset: 0;
  width: min(960px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  height: min(720px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--sc-line);
  border-radius: 24px;
  background: var(--sc-paper);
  box-shadow: 0 24px 80px rgba(18, 22, 41, 0.2);
  overflow: hidden;
}
.sentence-chat-history::backdrop { background: rgba(18, 22, 41, 0.42); backdrop-filter: blur(4px); }
.sentence-chat-history[open] { display: flex; flex-direction: column; }
.sentence-chat-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--sc-line);
  background: linear-gradient(135deg, #f6f4ff 0%, #ffffff 70%);
}
.sentence-chat-history-header h2 { margin: 0; font-size: 17px; font-weight: 700; }
.sentence-chat-history .sentence-chat-history-close {
  min-width: 64px;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid var(--sc-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--sc-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sentence-chat-history-body { display: grid; grid-template-columns: minmax(200px, 32%) minmax(0, 1fr); min-height: 0; flex: 1; }
.sentence-chat-history-list { overflow: auto; overscroll-behavior: contain; border-right: 1px solid var(--sc-line); padding: 12px; background: #fafbfe; }
.sentence-chat-history .sentence-chat-history-item {
  display: block;
  width: 100%;
  min-height: 76px;
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--sc-ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.sentence-chat-history .sentence-chat-history-item:hover { background: #ffffff; border-color: var(--sc-line); }
.sentence-chat-history .sentence-chat-history-item[aria-current=true] {
  background: #eeebff;
  border-color: rgba(88, 76, 244, 0.24);
}
.sentence-chat-history-item strong, .sentence-chat-history-item span, .sentence-chat-history-item small { display: block; }
.sentence-chat-history-item strong { font-size: 12.5px; font-weight: 700; }
.sentence-chat-history-item span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: 12px; line-height: 1.55; color: var(--sc-muted); }
.sentence-chat-history-item small { margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--sc-accent); }
.sentence-chat-history-detail { min-width: 0; overflow: auto; padding: 24px; overscroll-behavior: contain; }
.sentence-chat-history-sentence { margin: 0; font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.sentence-chat-history-empty { padding: 16px; font-size: 13px; color: var(--sc-muted); }
.player-root .sentence-chat { --sc-paper: #ffffff; --sc-ink: #121629; --sc-muted: #646d82; --sc-line: #eaeff7; }

@media(max-width: 640px) {
  .sentence-chat-history { width: calc(100vw - 16px); max-width: calc(100vw - 16px); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); border-radius: 18px; }
  .sentence-chat-history-body { grid-template-columns: 1fr; grid-template-rows: minmax(84px, 28%) minmax(0, 1fr); }
  .sentence-chat-history-list { display: flex; gap: 8px; border-right: 0; border-bottom: 1px solid var(--sc-line); }
  .sentence-chat-history-item { flex: 0 0 190px; }
  .sentence-chat-history-detail { padding: 18px; }
}
@media(prefers-reduced-motion: reduce) { .sentence-chat-dock .sentence-chat-dock-open { transition: none; } }

/* study-polish.css */
/* Shared learning controls: the same quiet, precise vocabulary as the native app. */
:root {
  --study-ink: #25263d;
  --study-muted: #656b7f;
  --study-rule: #e6e8f0;
  --study-accent: #6551d8;
  --study-accent-soft: #f0edff;
  --study-control: #f6f7fb;
  --study-focus: #6551d8;
}
.lr-site-app .icon { width:20px; height:20px; flex-shrink:0; stroke-width:1.75; }
.lr-site-app :is(.icon-btn,.lr-sidebar-toggle,.pf-icon-action,.pf-cue-actions button,.pf-expl-close,.reader-inspector-close,.reader-font-tools button) {
  min-width:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid transparent; border-radius:12px; color:var(--study-muted); background:transparent;
  transition:background-color 140ms ease,color 140ms ease,border-color 140ms ease,transform 120ms ease-out;
}
.lr-site-app :is(.pf-tool,.pf-option,.pf-cycle,.lr-record-btn,.rd-secondary,.reader-back,.reader-spacing,.reader-translate,.reader-inspector-toggle,.pf-inspector-toggle) {
  min-height:44px; border-radius:12px; padding:9px 12px; gap:8px;
  border:1px solid var(--study-rule); background:var(--color-surface,#fff); color:var(--study-ink);
  font-size:13px; font-weight:500; line-height:1.35;
  transition:background-color 140ms ease,color 140ms ease,border-color 140ms ease,transform 120ms ease-out;
}
.lr-site-app :is(.pf-tool,.pf-option,.reader-translate)[aria-pressed="true"],
.lr-site-app .pf-toggle.is-on {
  color:var(--study-accent); background:var(--study-accent-soft); border-color:#dcd5ff;
}
.lr-site-app .nav-btn { min-height:48px; border-radius:12px; gap:12px; }
.lr-site-app .nav-btn .icon { width:21px; height:21px; }
.lr-site-app :is(button,a,input,select,textarea):focus-visible { outline:3px solid var(--study-focus); outline-offset:3px; }
.lr-site-app :is(.icon-btn,.pf-tool,.pf-icon-action,.lr-record-btn,.rd-secondary,.dictionary-save,.dictionary-related):active:not(:disabled) { transform:scale(.97); }
.lr-site-app :is(.pf-cue-actions,.pf-cue-meta) { gap:4px; }
.lr-site-app .pf-expl-header { align-items:center; }
.lr-site-app .pf-expl-title { display:flex; align-items:center; gap:9px; color:var(--study-ink); }
.lr-site-app .pf-expl-context { color:var(--study-muted); font-size:12px; letter-spacing:.02em; margin-bottom:10px; }
.lr-site-app .pf-expl-cue { border-left:3px solid #b5a9ed; background:#f6f4fd; color:#45415b; padding:16px 18px; font-size:15px; line-height:1.8; border-radius:4px 12px 12px 4px; }
.lr-site-app .teaching-section h3 { color:var(--study-accent); font-size:13px; letter-spacing:.02em; }
.lr-site-app .pf-expl-body .teaching-section { margin-bottom:26px; }
.lr-site-app .pf-expl-loading { color:var(--study-muted); font-size:14px; padding:16px 0; }
.lr-site-app .pf-expl-close .icon { width:18px; height:18px; }
.lr-site-app .pf-spinner { width:20px; height:20px; border-width:2px; }
.lr-site-app .reader-font-tools button { padding:6px; }
.lr-site-app .player-secondary-toolbar { gap:8px; }
.lr-site-app .studio-player .player-secondary-toolbar button { min-height:44px; padding:10px 12px; border-radius:12px; }
.lr-site-app .studio-player .player-secondary-toolbar :is(button svg,.pf-cycle-icon) { width:18px; min-width:18px; height:18px; }
.lr-site-app .studio-player :is(.pf-cue-action,.pf-expl-close,.pf-playback-options>button,.pf-ab-toggle,.pf-volume,.pf-player-settings) { min-width:44px; width:44px; min-height:44px; height:44px; border-radius:12px; }
.lr-site-app .studio-player .pf-cue-action svg { width:19px; height:19px; }
.lr-site-app .studio-player .player-back-btn { min-height:44px; }
.lr-site-app .studio-player .pf-playback-options .pf-rate { width:auto; min-width:48px; }
.lr-site-app .studio-player .pf-cue-meta { gap:2px; }
@media(min-width:601px) {
  .lr-site-app .studio-player .pf-cue { padding-right:116px; }
}
@media(min-width:761px) {
  .lr-site-app[data-sidebar='expanded'] .lr-sidebar-top > .lr-sidebar-toggle { position:absolute; right:-35px; top:0; z-index:2; width:44px; height:44px; min-width:44px; min-height:44px; background:#fff; border:1px solid var(--study-rule); box-shadow:0 2px 6px #25263d08; }
  .lr-site-app[data-sidebar='expanded'] .lr-sidebar-top { padding-right:0; }
}
@media(min-width:1240px) {
  .lr-site-app .player-root.studio-player:not(.is-immersive) { height:calc(100dvh - 120px); min-height:500px; }
}
@media (hover:hover) and (pointer:fine) {
  .lr-site-app :is(.icon-btn,.lr-sidebar-toggle,.pf-icon-action,.pf-cue-actions button,.pf-expl-close,.reader-inspector-close,.reader-font-tools button):hover { background:var(--study-control); color:var(--study-ink); }
  .lr-site-app :is(.pf-tool,.lr-record-btn,.rd-secondary,.reader-back,.reader-spacing):hover { border-color:#cec7e7; background:#f9f8fd; }
}

/* A dictionary is a reading surface, with a stable word header and clear senses. */
dialog#notice.is-dictionary {
  width:min(620px,calc(100vw - 40px)); max-width:620px; max-height:min(860px,calc(100dvh - 64px));
  padding:0; overflow:hidden; border:1px solid rgba(230,232,240,.9); border-radius:24px;
  box-shadow:0 24px 80px #25263d24,0 4px 16px #25263d10; color:var(--study-ink);
}
dialog#notice.is-dictionary::backdrop { background:#20223966; backdrop-filter:blur(3px); }
#notice.is-dictionary .notice-form { position:absolute; inset:16px 16px auto auto; padding:0; margin:0; display:block; }
#notice.is-dictionary .notice-title { display:none; }
#notice.is-dictionary .notice-actions { margin:0; padding:0; }
#notice.is-dictionary .notice-close {
  position:static; width:44px; height:44px; min-height:44px; margin:0; padding:0; border:0;
  display:grid; place-items:center; border-radius:50%; color:var(--study-muted); background:#fff;
}
#notice.is-dictionary .notice-close svg { width:20px; height:20px; }
#notice.is-dictionary .dictionary-content {
  display:flex; flex-direction:column; max-height:min(858px,calc(100dvh - 66px)); padding:0; margin:0;
  white-space:normal; overflow:hidden; text-align:left;
}
#notice.is-dictionary .dictionary-heading {
  flex-shrink:0; padding:28px 76px 22px 32px; background:linear-gradient(115deg,#f6f4ff,#fcfcff 75%);
  border-bottom:1px solid var(--study-rule);
}
#notice.is-dictionary .dictionary-eyebrow { margin:0 0 10px; color:var(--study-accent); font-size:12px; font-weight:600; line-height:1.4; letter-spacing:.07em; }
#notice.is-dictionary h2.dictionary-word { margin:0 0 12px!important; color:var(--study-ink); font:500 clamp(26px,4vw,36px)/1.24 Lexend,var(--font-body); letter-spacing:-1.1px; overflow-wrap:anywhere; }
#notice.is-dictionary .dictionary-pronunciation { display:flex; flex-wrap:wrap; gap:8px 18px; min-height:22px; }
#notice.is-dictionary .dictionary-pronunciation-item { display:inline-flex; align-items:center; gap:9px; }
#notice.is-dictionary .dictionary-accent { color:var(--study-muted); font-size:12px; }
#notice.is-dictionary .dictionary-ipa { font:15px/1.5 "Arial",sans-serif; color:#59586f; }
#notice.is-dictionary button.dictionary-icon-button { width:44px; height:44px; margin:-11px 0 -11px -4px; padding:0; border:0; display:grid; place-items:center; border-radius:50%; background:transparent; color:var(--study-accent); }
#notice.is-dictionary .dictionary-icon-button .icon { width:19px; height:19px; }
#notice.is-dictionary .dictionary-body { min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; padding:26px 32px 30px; }
#notice.is-dictionary .dictionary-section { margin:0; padding:0; border:0; }
#notice.is-dictionary .dictionary-section + .dictionary-section { margin-top:26px; padding-top:24px; border-top:1px solid var(--study-rule); }
#notice.is-dictionary h3.dictionary-section-title { margin:0 0 15px; padding:0; border:0; color:var(--study-muted); font-size:12px; font-weight:600; line-height:1.5; letter-spacing:.05em; }
#notice.is-dictionary .dictionary-meaning-group { display:grid; grid-template-columns:52px minmax(0,1fr); align-items:start; gap:16px; }
#notice.is-dictionary .dictionary-meaning-group + .dictionary-meaning-group { margin-top:18px; }
#notice.is-dictionary .dictionary-pos { display:inline-flex; justify-content:center; align-self:start; min-height:25px; padding:4px 7px; border-radius:7px; background:var(--study-accent-soft); color:var(--study-accent); font:500 12px/1.5 Lexend,var(--font-body); overflow-wrap:anywhere; }
#notice.is-dictionary .dictionary-definition-list { margin:0; padding:0; list-style:none; color:var(--study-ink); font-size:16px; line-height:1.8; }
#notice.is-dictionary .dictionary-meaning-group:not(:has(.dictionary-pos)) .dictionary-definition-list { grid-column:1/-1; }
#notice.is-dictionary .dictionary-definition-list li + li { margin-top:9px; }
#notice.is-dictionary .dictionary-context { margin:0; padding:16px 18px; border-left:3px solid #b8acee; border-radius:3px 10px 10px 3px; background:#f7f6fc; color:#45415b; font:400 15px/1.85 Lexend,var(--font-body); overflow-wrap:anywhere; }
#notice.is-dictionary .dictionary-example-row + .dictionary-example-row { margin-top:18px; }
#notice.is-dictionary p.dictionary-example { margin:0 0 5px; color:var(--study-ink); font:400 15px/1.75 Lexend,var(--font-body); overflow-wrap:anywhere; }
#notice.is-dictionary p.dictionary-translation { margin:0; color:var(--study-muted); font-size:14px; line-height:1.75; }
#notice.is-dictionary .dictionary-phrase + .dictionary-phrase { margin-top:14px; }
#notice.is-dictionary .dictionary-phrase strong { color:var(--study-ink); font:500 14px/1.7 Lexend,var(--font-body); }
#notice.is-dictionary .dictionary-phrase p { margin:3px 0 0; color:var(--study-muted); font-size:14px; line-height:1.7; }
#notice.is-dictionary .dictionary-relations { display:flex; flex-wrap:wrap; gap:8px; }
#notice.is-dictionary button.dictionary-related { min-height:44px; margin:0; padding:10px 14px; border:1px solid var(--study-rule); border-radius:10px; background:#fff; color:var(--study-ink); font:400 13px/1.5 Lexend,var(--font-body); }
#notice.is-dictionary .dictionary-forms { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 24px; margin:0; }
#notice.is-dictionary .dictionary-form dt { margin:0 0 4px; color:var(--study-muted); font-size:12px; line-height:1.5; }
#notice.is-dictionary .dictionary-form dd { margin:0; color:var(--study-ink); font:500 14px/1.7 Lexend,var(--font-body); overflow-wrap:anywhere; }
#notice.is-dictionary .dictionary-footer { flex-shrink:0; display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; padding:16px 32px; border-top:1px solid var(--study-rule); background:#fff; }
#notice.is-dictionary button.dictionary-save,#notice.is-dictionary button.dictionary-retry { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px; padding:10px 16px; margin:0; border:1px solid #dfd9f8; border-radius:12px; background:var(--study-accent-soft); color:var(--study-accent); font-size:14px; font-weight:500; }
#notice.is-dictionary button.dictionary-save:disabled { opacity:1; background:#f4f5f8; color:#656b7f; border-color:transparent; cursor:default; }
#notice.is-dictionary p.dictionary-status,#notice.is-dictionary p.dictionary-empty { margin:0; padding:12px 0; color:var(--study-muted); font-size:14px; line-height:1.75; }
#notice.is-dictionary .dictionary-footer .dictionary-status { flex-basis:100%; text-align:right; padding:4px 0 0; }
@media (hover:hover) and (pointer:fine) {
  #notice.is-dictionary :is(.notice-close,.dictionary-icon-button):hover { background:var(--study-accent-soft); color:var(--study-accent); }
  #notice.is-dictionary .dictionary-related:hover { color:var(--study-accent); border-color:#c6bae9; background:#faf9ff; }
  #notice.is-dictionary .dictionary-save:hover:not(:disabled) { background:#e8e2ff; }
}
@media (max-width:640px) {
  dialog#notice.is-dictionary { width:calc(100vw - 24px); max-height:calc(100dvh - 32px); border-radius:20px; }
  #notice.is-dictionary .dictionary-content { max-height:calc(100dvh - 34px); }
  #notice.is-dictionary .dictionary-heading { padding:24px 64px 20px 22px; }
  #notice.is-dictionary .dictionary-body { padding:22px; }
  #notice.is-dictionary .notice-form { inset:12px 10px auto auto; }
  #notice.is-dictionary .dictionary-meaning-group { grid-template-columns:44px minmax(0,1fr); gap:12px; }
  #notice.is-dictionary .dictionary-footer { padding:14px 22px max(14px,env(safe-area-inset-bottom)); }
  #notice.is-dictionary .dictionary-save { width:100%; }
  .lr-site-app .player-secondary-toolbar { gap:6px; }
}
@media (prefers-reduced-motion:reduce) {
  .lr-site-app :is(button,a,input,select,textarea) { transition:none!important; }
  .lr-site-app :is(.pf-spinner,.preparing-dot) { animation:none!important; }
}

/* A confirmed trial deduction links directly to the existing membership centre. */
.lr-trial-toast {
  position:fixed; z-index:1500; left:50%; bottom:max(24px,env(safe-area-inset-bottom));
  transform:translateX(-50%); display:flex; align-items:stretch; width:max-content;
  max-width:calc(100vw - 32px); border-radius:18px; color:#fff;
  background:linear-gradient(110deg,#6546d7 0%,#275ed3 55%,#087887 100%);
  box-shadow:0 12px 36px #3147a83b; overflow:hidden; animation:lr-trial-appear 180ms ease-out;
}
.lr-trial-toast button { border:0; background:transparent; color:inherit; cursor:pointer; font:inherit; }
.lr-trial-toast-action { display:flex; align-items:center; flex-wrap:wrap; justify-content:center; gap:10px 20px; padding:14px 18px; min-height:52px; text-align:left; }
.lr-trial-toast-action span { font-size:14px; line-height:1.45; }
.lr-trial-toast-link { font-weight:700; text-decoration:underline; text-underline-offset:3px; white-space:nowrap; }
.lr-trial-toast-close { flex-shrink:0; min-width:44px; padding:8px; font-size:23px!important; }
.lr-trial-toast button:hover { background:#ffffff12; }
.lr-trial-toast button:focus-visible { outline:2px solid white; outline-offset:-5px; border-radius:14px; }
@keyframes lr-trial-appear { from { opacity:0; } to { opacity:1; } }
@media (prefers-reduced-motion:reduce) { .lr-trial-toast { animation:none; } }

/* Player controls: solid transport, open learning marks, explicit state labels. */
.lr-site-app .player-root.studio-player .pf-playback-footer { container:player-controls / inline-size; }
.lr-site-app .player-root.studio-player {
  --player-control-ink: #41445c;
  --player-control-selected: #5743cb;
  --player-control-tint: #f0edfc;
}
.lr-site-app .player-root.studio-player button .player-mark {
  width:22px; height:22px; flex:none;
}
.lr-site-app .player-root.studio-player .pf-cycle-icon {
  width:22px; min-width:22px; height:22px; border-radius:0; background:transparent;
}
.lr-site-app .player-root.studio-player :is(.pf-cue-action,.pf-expl-close,.pf-volume,.pf-player-settings,.pf-ab-toggle,.pf-fullscreen,.pf-loop,.pf-playback-options>.pf-option) {
  width:44px; min-width:44px; min-height:48px; height:48px; padding:4px;
  color:var(--player-control-ink); border:0; border-radius:11px; background:transparent; box-shadow:none;
}
.lr-site-app .player-root.studio-player :is(.pf-volume,.pf-player-settings,.pf-ab-toggle,.pf-fullscreen,.pf-loop,.pf-playback-options>.pf-option) {
  flex-direction:column; gap:3px;
}
.lr-site-app .player-root.studio-player .pf-playback-options button > .pf-control-caption {
  display:block; font-size:11px; line-height:1; font-weight:500; letter-spacing:0; white-space:nowrap;
}
.lr-site-app .player-root.studio-player .pf-playback-options button:is([aria-pressed="true"],[aria-expanded="true"],.is-ready) {
  color:var(--player-control-selected); background:var(--player-control-tint);
}
.lr-site-app .player-root.studio-player .pf-volume-wrap { padding:0; margin:0; border:0; }
.lr-site-app .player-root.studio-player .pf-playback-options .pf-rate {
  width:44px; min-width:44px; min-height:48px; padding:4px; border:0; border-radius:11px;
  background:transparent; color:var(--player-control-ink); font-size:14px; font-weight:500;
}
.lr-site-app .player-root.studio-player .studio-transport { gap:8px; }
.lr-site-app .player-root.studio-player .studio-transport button {
  width:44px; min-width:44px; height:48px; min-height:48px; padding:10px;
  border:0; background:transparent; color:var(--player-control-ink); box-shadow:none;
}
.lr-site-app .player-root.studio-player .studio-transport .pf-play {
  width:52px; min-width:52px; height:52px; border-radius:18px;
  color:#fff; background:var(--pf-accent); box-shadow:0 4px 12px #584cf422;
}
.lr-site-app .player-root.studio-player .studio-transport .pf-play .player-mark { width:26px; height:26px; }
.lr-site-app .player-root.studio-player .pf-cue-meta,
.lr-site-app .player-root.studio-player .pf-cue.is-active .pf-cue-meta { background:transparent; padding:0; }
.lr-site-app .player-root.studio-player .pf-cue-action { min-height:44px; height:44px; }
.lr-site-app .player-root.studio-player .pf-cue-action[aria-pressed="true"] { color:var(--player-control-selected); background:var(--player-control-tint); }
.lr-site-app .player-root.studio-player .player-secondary-toolbar button {
  min-height:44px; padding:9px 10px; gap:7px; border:0; border-radius:10px;
  background:transparent; color:var(--player-control-ink); font-size:12px; font-weight:500;
}
.lr-site-app .player-root.studio-player .player-secondary-toolbar button[aria-pressed="true"] {
  color:var(--player-control-selected); background:var(--player-control-tint);
}
.lr-site-app .player-root.studio-player .pf-volume-panel :is(.pf-mute,input) { min-height:44px; }
.lr-site-app .player-root.studio-player .pf-volume-panel .pf-mute { font-size:12px; }
.lr-site-app .player-root.studio-player :is(.pf-volume-panel,.pf-settings-panel) { bottom:56px; }
.lr-site-app .player-root.studio-player :is(.pf-seek-wrap,.pf-seek) { min-height:24px; }
.lr-site-app .player-root.studio-player .pf-seek {
  height:24px; border-radius:0;
  background:linear-gradient(to right,var(--pf-accent) 0 var(--pf-progress,0%),#e4e9f4 var(--pf-progress,0%) 100%) center / 100% 4px no-repeat;
}
.lr-site-app .player-root.studio-player .pf-seek::-webkit-slider-thumb { width:14px; height:14px; border-width:2px; box-shadow:0 1px 4px #584cf422; }
.lr-site-app .player-root.studio-player .pf-seek::-moz-range-thumb { width:12px; height:12px; border-width:2px; }
@media(hover:hover) and (pointer:fine) {
  .lr-site-app .player-root.studio-player :is(.pf-cue-action,.pf-expl-close,.pf-volume,.pf-player-settings,.pf-ab-toggle,.pf-fullscreen,.pf-loop,.pf-playback-options>.pf-option,.pf-rate,.player-secondary-toolbar button,.studio-transport button):hover {
    color:var(--player-control-selected); background:var(--player-control-tint);
  }
  .lr-site-app .player-root.studio-player .studio-transport .pf-play:hover { color:#fff; background:var(--pf-accent-dark); }
}
@media(max-width:600px) {
  .lr-site-app .player-root.studio-player .pf-playback-footer { padding:12px; }
  .lr-site-app .player-root.studio-player .pf-playback-options { gap:2px; }
  .lr-site-app .player-root.studio-player .player-secondary-toolbar { gap:4px; }
  .lr-site-app .player-root.studio-player .player-secondary-toolbar button { flex:1 1 auto; padding:8px; }
  .lr-site-app .player-root.studio-player .pf-settings-panel { right:0; }
  .lr-site-app .player-root.studio-player .pf-volume-panel { right:-44px; }
}
@media(max-width:374px) {
  .lr-site-app .player-root.studio-player .pf-playback-options { display:grid; grid-template-columns:repeat(4,minmax(44px,1fr)); justify-items:center; row-gap:4px; }
  .lr-site-app .player-root.studio-player .pf-volume-panel { right:auto; left:0; }
  .lr-site-app .player-root.studio-player .pf-settings-panel { right:auto; left:-52px; }
}
@media(forced-colors:active) {
  .lr-site-app .player-root.studio-player button[aria-pressed="true"] { outline:2px solid Highlight; outline-offset:-3px; }
}

/* Follow the actual transcript width when a desktop sidebar or inspector is open. */
@container player-controls (max-width:520px) {
  .lr-site-app .player-root.studio-player .player-controls { grid-template-columns:1fr; justify-items:center; gap:8px; }
  .lr-site-app .player-root.studio-player .pf-playback-options { width:100%; justify-content:center; }
}

.lr-trial-toast{max-width:calc(100vw - 32px);background:linear-gradient(110deg,#6f61da,#458da9);border:1px solid #ffffff40;box-shadow:0 8px 26px #2c385022}
.lr-trial-toast-action{flex-wrap:nowrap;gap:12px;padding:10px 13px;min-height:42px}.lr-trial-toast-action span{font-size:12px;white-space:nowrap;line-height:1.4}.lr-trial-toast-link{font-weight:500}.lr-trial-toast-close{min-width:36px;min-height:36px;font-size:20px!important}
@media(max-width:380px){.lr-trial-toast-action{gap:8px;padding:9px 10px}.lr-trial-toast-action span{font-size:11px}}
