/* ===== 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:'听见更大的世界';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:'字幕已隐藏';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}}
