/* =========================================================
   Lingoreel — 设计 token
   理念：把"看视频学单词"做成像电影字幕一样有呼吸感的体验
   主色调取自深夜放映厅：墨蓝背景 + 暖黄字幕高亮（致敬影院字幕条）
   ========================================================= */
:root {
  --bg: #0e1116;
  --bg-elevated: #161b22;
  --bg-card: #1a2029;
  --border: #262d39;
  --border-soft: #1e2530;

  --text-primary: #eef1f6;
  --text-secondary: #9aa4b5;
  --text-faint: #5c6577;

  --accent: #ffc85c;        /* 字幕高亮 - 暖黄，致敬电影字幕 */
  --accent-soft: #ffc85c22;
  --accent-deep: #d9a23e;

  --blue: #5ea8ff;          /* 链接/交互色 */
  --green: #6fcf97;         /* 已掌握 */
  --red: #ef6f6f;           /* 不认识 */

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-display: "Newsreader", "Noto Serif SC", Georgia, serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input {
  font-family: inherit;
}

.hidden { display: none !important; }

.pdf-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ===================== 顶部导航 ===================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 17, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #1a1a1a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
}

.main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14.5px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .15s, background .15s;
}

.nav-link { text-decoration: none; }
.nav-link:hover { color: var(--text-primary); background: var(--bg-elevated); }
.nav-link.active { color: var(--accent); }

.badge {
  background: var(--accent);
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  min-width: 16px;
  text-align: center;
}

.auth-zone { display: flex; align-items: center; gap: 10px; }

.auth-btn, .signout-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.auth-btn:hover { border-color: var(--accent); }

.user-chip {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ===================== 视图切换 ===================== */
.view { display: none; max-width: 1200px; margin: 0 auto; padding: 0 28px 60px; }
.view.active { display: block; }

#view-home {
  padding-bottom: 0;
}

#view-daily-report {
  max-width: min(1880px, 100vw);
  width: 100%;
  padding: 0 clamp(14px, 2vw, 28px) 36px;
}

#view-daily-report .section-header {
  align-items: center;
  padding: 14px 0 10px;
}

#view-daily-report .section-header h2 {
  font-size: 22px;
  margin-bottom: 2px;
}

#view-daily-report .section-sub {
  font-size: 12.5px;
}

/* ===================== Hero / 首页 ===================== */
.hero {
  position: relative;
  min-height: calc(100dvh - 61px);
  padding: 28px 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 22%;
  width: 620px;
  height: 360px;
  background: radial-gradient(ellipse, var(--accent-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 500px);
  align-items: center;
  gap: 44px;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
}

.hero-title {
  position: relative;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 16px;
}

.hero-title .accent { color: var(--accent); }

.hero-sub {
  position: relative;
  color: var(--text-secondary);
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 0 28px;
}

.url-form {
  position: relative;
  display: flex;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
}

.url-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  padding: 12px 14px;
}

.url-form input::placeholder { color: var(--text-faint); }

.url-form button {
  background: var(--accent);
  color: #1a1a1a;
  border: none;
  font-weight: 600;
  font-size: 14.5px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: filter .15s;
}

.url-form button:hover { filter: brightness(1.08); }
.url-form button:disabled { opacity: .5; cursor: default; }

.url-form .upload-inline-btn {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 0 18px;
}

.url-form .upload-inline-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.fallback-row {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-faint);
}

.link-btn {
  background: none;
  border: none;
  color: var(--blue);
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.secondary-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}

.fetch-status {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.fetch-status.error { color: var(--red); }
.fetch-status.loading { color: var(--accent); }

.quota-strip {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
}

.quota-strip span {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 9px;
  line-height: 1.2;
}

.quota-strip .quota-plan {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-deep);
  font-weight: 650;
}

.demo-showcase {
  width: 100%;
  max-width: 500px;
  min-width: 0;
  justify-self: end;
}

.demo-showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.demo-scroll-controls {
  display: flex;
  gap: 8px;
}

.demo-scroll-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .16s, border-color .16s, transform .16s;
}

.demo-scroll-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-deep);
  transform: translateY(-1px);
}

.demo-video-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.demo-video-track::-webkit-scrollbar {
  display: none;
}

.demo-video-panel {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  scroll-snap-align: start;
  transition: transform .16s, border-color .16s;
}

.demo-video-panel:hover {
  transform: translateY(-2px);
  border-color: var(--accent-deep);
}

.demo-thumb-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.demo-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
}

.demo-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.demo-play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding-left: 3px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

.demo-panel-body {
  padding: 12px 15px 14px;
}

.demo-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.demo-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.demo-card-label {
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  flex-shrink: 0;
}

.demo-count-pill {
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.demo-panel-body h2 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.demo-sentence {
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.38;
  margin: 0 0 5px;
  padding-left: 10px;
  border-left: 2px solid var(--accent-deep);
}

.demo-sentence-zh {
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.38;
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 2px solid rgba(244, 162, 97, .18);
}

.demo-word-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.demo-word-chip {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-deep);
  border-radius: 12px;
  padding: 6px 9px;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: background .16s, border-color .16s, transform .16s;
}

.demo-word-text,
.demo-word-zh {
  display: block;
}

.demo-word-text {
  font-size: 12px;
}

.demo-word-zh {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  margin-top: 3px;
}

.demo-word-chip:hover {
  background: rgba(244, 162, 97, .18);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.demo-preview-btn {
  width: 100%;
  margin-top: 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #1a1a1a;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(244, 162, 97, .22);
  transition: transform .16s, box-shadow .16s, background .16s;
}

.demo-preview-btn:hover {
  transform: translateY(-1px);
  background: var(--accent-light);
  box-shadow: 0 14px 34px rgba(244, 162, 97, .28);
}

/* ===================== 播放器 + 字幕区 ===================== */
.player-block { padding-top: 30px; }

.watch-page-layout {
  display: flex;
  gap: 20px;
  align-items: start;
}

#view-watch {
  max-width: none;
  padding: 0 28px 60px;
}

.watch-page-layout .player-block {
  flex: 1;
  min-width: 0;
}

.player-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: start;
}

.watch-list-col {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: calc(100vh - 164px);
  display: flex;
  flex-direction: column;
}

.watch-list-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--border-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
  flex-shrink: 0;
}

.watch-list {
  overflow-y: auto;
  flex: 1;
}

.watch-list-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-soft);
  transition: background .15s;
}
.watch-list-item:hover { background: var(--bg-hover); }
.watch-list-item.active { background: var(--accent-soft, rgba(99,102,241,.12)); border-left: 3px solid var(--accent, #6366f1); padding-left: 7px; }

.watch-list-thumb {
  width: 60px;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 3px;
  background: #000;
}

.watch-list-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.watch-list-title {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.watch-list-resume {
  font-size: 10px;
  color: var(--accent, #6366f1);
}

.wl-progress-track {
  height: 2px;
  background: var(--border-soft);
  border-radius: 2px;
  overflow: hidden;
}

.wl-progress-fill {
  height: 100%;
  background: var(--accent, #6366f1);
  border-radius: 2px;
}

.player-col {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 100px;
}

/* 右栏：撑满视口高度，减去顶栏(~70px) + player-block padding-top(30px) */
.transcript-col {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: calc(100vh - 164px);
}

.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

#yt-player {
  width: 100%;
  height: 100%;
}

.pdf-reader-wrap {
  min-height: 260px;
  background: linear-gradient(135deg, rgba(47, 123, 255, .14), rgba(42, 198, 155, .12));
}

#view-watch.reading-mode {
  padding: 0 28px 34px;
}

#view-watch.reading-mode .watch-page-layout {
  display: block;
  width: min(1320px, 100%);
  margin: 0 auto;
}

#view-watch.reading-mode .watch-page-layout .player-block {
  padding-top: 22px;
}

#view-watch.reading-mode .watch-list-col {
  display: none;
}

#view-watch.reading-mode .player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

#view-watch.reading-mode .player-col {
  position: static;
  top: auto;
  min-width: 0;
}

#view-watch.reading-mode .transcript-col {
  display: flex;
  height: clamp(540px, calc(100vh - 190px), 920px);
}

#view-watch.reading-mode .player-wrap {
  aspect-ratio: auto;
  height: clamp(540px, calc(100vh - 190px), 920px);
  background: linear-gradient(135deg, rgba(47, 123, 255, .12), rgba(42, 198, 155, .10));
}

#view-watch.reading-mode #tab-transcript-btn,
#view-watch.reading-mode #tab-listen-btn,
#view-watch.reading-mode #tab-speak-btn,
#view-watch.reading-mode #tab-guided-btn,
#view-watch.reading-mode #panel-transcript,
#view-watch.reading-mode #panel-listen,
#view-watch.reading-mode #panel-speak,
#view-watch.reading-mode #panel-guided,
#view-watch.reading-mode #lang-switch-wrap,
#view-watch.reading-mode #download-srt-btn,
#view-watch.reading-mode .right-tab-actions {
  display: none !important;
}

#view-watch.reading-mode #tab-vocab-btn {
  pointer-events: none;
  padding-left: 16px;
}

#view-watch.reading-mode .right-tabs {
  padding: 0 8px;
}

#view-watch.reading-mode .pdf-reader-wrap {
  min-height: 0;
}

.pdf-reader-card {
  width: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  color: var(--text-primary);
}

.pdf-reader-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pdf-reader-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}

.pdf-reader-meta {
  color: var(--text-secondary);
  font-size: 14px;
}

.pdf-book {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  gap: 14px;
}

#view-watch.reading-mode .pdf-book {
  min-height: 0;
  padding: 20px;
}

.pdf-book-toolbar {
  display: grid;
  grid-template-columns: 84px 1fr 84px;
  align-items: center;
  gap: 12px;
}

.pdf-book-title {
  min-width: 0;
  text-align: center;
}

.pdf-book-title .pdf-reader-title {
  font-size: 17px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-book-title .pdf-reader-label {
  margin-bottom: 4px;
}

.pdf-font-controls {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.pdf-font-btn,
.pdf-font-reset {
  height: 26px;
  min-width: 34px;
  border: 1px solid rgba(47, 123, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #18324f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0 9px;
}

.pdf-font-reset {
  min-width: 50px;
  color: var(--accent);
}

.pdf-font-reset.is-limited {
  color: #a16207;
  border-color: rgba(161, 98, 7, .34);
}

.pdf-font-btn:hover,
.pdf-font-reset:hover {
  border-color: var(--accent);
}

.pdf-font-btn:disabled {
  opacity: .42;
  cursor: default;
}

.pdf-page-btn {
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
}

.pdf-page-btn:disabled {
  opacity: .38;
  cursor: default;
}

.pdf-book-page {
  flex: 1;
  overflow-y: auto;
  background: #f7f1e5;
  color: #1f2933;
  font-size: var(--pdf-page-font-size, 18px);
  line-height: var(--pdf-page-line-height, 1.72);
  border-radius: 10px;
  padding: 30px 34px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 18px 42px rgba(0, 0, 0, .18);
}

#view-watch.reading-mode .pdf-book-page {
  overflow: hidden;
  padding: 42px 56px;
}

.pdf-book-paragraph {
  margin: 0 0 var(--pdf-page-paragraph-gap, 16px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: inherit;
  line-height: inherit;
}

.pdf-book-paragraph .word {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  border-bottom: 1px solid transparent;
}

.pdf-book-paragraph .word:hover {
  color: #a16207;
  border-bottom-color: #a16207;
}

.pdf-book-empty {
  color: #64748b;
  text-align: center;
  margin-top: 80px;
}

.player-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  transition: opacity .4s ease;
}
.player-poster.fading { opacity: 0; pointer-events: none; }

.player-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.player-poster-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-ring {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.player-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 14px;
}

.player-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guided-vlog-card {
  margin-top: 12px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 200, 92, .20);
  border-radius: var(--radius-md);
  background: rgba(26, 32, 41, .86);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.guided-vlog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.guided-vlog-kicker,
.guided-vlog-progress {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.guided-vlog-progress {
  color: var(--text-muted);
}

.guided-vlog-title {
  margin: 0 0 6px;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.35;
}

.guided-vlog-body {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.65;
}

.guided-vlog-focus {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(14, 17, 22, .48);
}

.guided-vlog-card--compact {
  padding-top: 8px;
}

.guided-vlog-card--compact .guided-vlog-focus {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.guided-vlog-goal,
.guided-vlog-pattern {
  color: var(--text-primary);
  font-size: 13.5px;
  line-height: 1.55;
}

.guided-vlog-pattern {
  color: var(--accent);
  font-weight: 750;
}

.guided-vlog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.guided-vlog-meta span {
  border: 1px solid rgba(255, 200, 92, .32);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--accent);
  font-weight: 750;
}

.guided-vlog-meta em {
  color: var(--text-muted);
  font-style: normal;
}

.guided-vlog-quote {
  color: var(--text-primary);
  font-size: 13.5px;
  line-height: 1.55;
}

.guided-vlog-correction {
  margin-top: 5px;
  color: var(--text-faint);
  font-size: 11.5px;
  line-height: 1.45;
}

.guided-vlog-correction span {
  color: var(--text-muted);
}

.guided-vlog-translation {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.guided-vlog-pipeline {
  margin-bottom: 10px;
  padding: 8px 9px;
  border: 1px solid rgba(94, 168, 255, .22);
  border-radius: var(--radius-sm);
  background: rgba(94, 168, 255, .07);
  overflow: hidden;
}

.guided-vlog-pipeline-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.guided-vlog-pipeline-label {
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 750;
  white-space: nowrap;
}

.guided-vlog-pipeline-viewport {
  min-width: 0;
  overflow: hidden;
}

.guided-vlog-pipeline-track {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  animation: guidedPipelineScroll 18s linear infinite;
}

.guided-vlog-pipeline:hover .guided-vlog-pipeline-track {
  animation-play-state: paused;
}

.guided-vlog-pipeline-node,
.guided-vlog-pipeline-message {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 11.5px;
  line-height: 1.2;
  white-space: nowrap;
}

.guided-vlog-pipeline-node i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(150, 160, 176, .55);
}

.guided-vlog-pipeline-node.done i {
  background: var(--green);
}

.guided-vlog-pipeline-node.active i {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 200, 92, .13);
}

.guided-vlog-pipeline-node.error i {
  background: var(--red);
}

.guided-vlog-pipeline-node.empty i {
  background: var(--text-muted);
}

.guided-vlog-pipeline-message {
  color: var(--text-primary);
  font-weight: 650;
}

@keyframes guidedPipelineScroll {
  0%, 18% { transform: translateX(0); }
  82%, 100% { transform: translateX(-32%); }
}

.guided-vlog-chunk-strip {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 0 0 10px;
  margin-bottom: 10px;
  scroll-snap-type: x proximity;
}

.guided-vlog-chunk-strip.compact {
  gap: 7px;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.guided-vlog-chunk-card {
  flex: 0 0 142px;
  position: relative;
  display: grid;
  gap: 7px;
  padding: 7px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  color: var(--text-secondary);
  text-align: left;
  scroll-snap-align: start;
}

.guided-vlog-chunk-strip.compact .guided-vlog-chunk-card {
  flex-basis: 118px;
  gap: 5px;
  padding: 5px;
}

.guided-vlog-chunk-card:hover,
.guided-vlog-chunk-card.active {
  border-color: rgba(255, 200, 92, .58);
  background: rgba(255, 200, 92, .09);
  color: var(--text-primary);
}

.guided-vlog-chunk-card.active {
  box-shadow: 0 0 0 1px rgba(255, 200, 92, .16), 0 10px 24px rgba(255, 200, 92, .08);
}

.guided-vlog-chunk-card.loading {
  border-color: rgba(94, 168, 255, .42);
}

.guided-vlog-chunk-card.status-error {
  border-color: rgba(239, 111, 111, .42);
}

.guided-vlog-chunk-card.status-empty {
  border-color: rgba(150, 160, 176, .36);
}

.guided-vlog-chunk-card.status-done {
  border-color: rgba(104, 195, 140, .34);
}

.guided-vlog-chunk-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(0, 0, 0, .24);
}

.guided-vlog-chunk-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: .78;
  transition: opacity .18s ease;
}

.guided-vlog-chunk-thumb img.loaded {
  opacity: .92;
}

.guided-vlog-chunk-play {
  position: absolute;
  left: 8px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 10px;
}

.guided-vlog-current-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  max-width: calc(100% - 12px);
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 200, 92, .94);
  color: #16120a;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .24);
}

.guided-current-chunk-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
  margin: 0 0 10px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 200, 92, .26);
  border-radius: var(--radius-sm);
  background: rgba(255, 200, 92, .075);
  color: var(--text-secondary);
}

.guided-current-chunk-badge span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 200, 92, .16);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.guided-current-chunk-badge strong {
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 850;
  white-space: nowrap;
}

.guided-current-chunk-badge em {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .guided-current-chunk-badge em {
    width: 100%;
    margin-left: 0;
  }
}

.guided-vlog-chunk-meta {
  display: grid;
  gap: 2px;
}

.guided-vlog-chunk-meta strong {
  color: var(--text-primary);
  font-size: 12.5px;
}

.guided-vlog-chunk-strip.compact .guided-vlog-chunk-meta strong {
  font-size: 12px;
}

.guided-vlog-chunk-meta em,
.guided-vlog-chunk-meta small {
  color: var(--text-muted);
  font-size: 11.5px;
  font-style: normal;
}

.guided-vlog-chunk-strip.compact .guided-vlog-chunk-meta em {
  font-size: 11px;
}

.guided-vlog-analysis {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.guided-vlog-analysis-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  padding-top: 7px;
  border-top: 1px solid var(--border-soft);
}

.guided-vlog-analysis-row span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
}

.guided-vlog-analysis-row strong {
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  white-space: pre-line;
}

.guided-vlog-card--compact .guided-vlog-analysis {
  margin-top: 9px;
}

.guided-vlog-card--compact .guided-vlog-analysis-row {
  grid-template-columns: 1fr;
  gap: 5px;
  padding-top: 8px;
}

.guided-vlog-card--compact .guided-vlog-analysis-row strong {
  color: var(--text-primary);
  font-size: 13px;
}

.guided-vlog-card--compact .guided-vlog-section-title {
  margin: 10px 0 6px;
}

.guided-vlog-card--compact .guided-vlog-terms {
  gap: 7px;
  margin-top: 8px;
}

.guided-vlog-card--compact .guided-vlog-term {
  padding: 8px;
}

.guided-vlog-card--compact .guided-vlog-actions {
  margin-top: 10px;
}

.guided-vlog-card--compact .guided-speaking-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  justify-content: flex-start;
  margin-top: 8px;
  padding: 8px 0 2px;
  background: linear-gradient(180deg, rgba(18, 24, 33, 0), rgba(18, 24, 33, .96) 34%);
}

.guided-learning-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 9px;
}

.guided-learning-steps span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 22px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 750;
}

.guided-learning-steps span.active {
  border-color: var(--accent);
  background: rgba(255, 200, 92, .12);
  color: var(--accent);
}

.guided-learning-steps span.done {
  border-color: rgba(104, 195, 140, .34);
  background: rgba(104, 195, 140, .10);
  color: var(--green);
}

.guided-learning-target,
.guided-learning-listening,
.guided-learning-summary {
  display: grid;
  gap: 5px;
  margin-top: 9px;
  padding: 9px;
  border: 1px solid rgba(255, 200, 92, .20);
  border-radius: var(--radius-sm);
  background: rgba(255, 200, 92, .055);
}

.guided-learning-target.compact {
  border-color: rgba(94, 168, 255, .22);
  background: rgba(94, 168, 255, .07);
}

.guided-learning-target span,
.guided-learning-listening span,
.guided-learning-summary span {
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 750;
}

.guided-learning-target strong,
.guided-learning-listening strong,
.guided-learning-summary strong {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.45;
}

.guided-learning-target em,
.guided-learning-target p,
.guided-learning-listening span {
  color: var(--text-secondary);
  font-size: 12.5px;
  font-style: normal;
  line-height: 1.45;
  margin: 0;
}

.guided-learning-summary {
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, .03);
}

.guided-learning-summary div {
  display: grid;
  gap: 3px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border-soft);
}

.guided-learning-summary div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.guided-listening-hero,
.guided-listening-phase,
.guided-listening-wait,
.guided-listening-key-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.guided-listening-hero {
  padding: 10px;
  border: 1px solid rgba(94, 168, 255, .24);
  border-radius: var(--radius-sm);
  background: rgba(94, 168, 255, .07);
}

.guided-listening-hero span,
.guided-listening-key-body span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
}

.guided-listening-hero strong,
.guided-listening-phase strong,
.guided-listening-key-body strong {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
}

.guided-listening-hero em,
.guided-listening-phase span,
.guided-listening-wait span,
.guided-listening-key-body em,
.guided-listening-key-body p {
  color: var(--text-secondary);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
  margin: 0;
}

.guided-listening-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.guided-listening-training-compact {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.guided-listening-training-compact .guided-listening-steps {
  margin-top: 0;
}

.guided-listening-steps button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  min-height: 26px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.guided-listening-steps button:not(:disabled) {
  cursor: pointer;
}

.guided-listening-steps button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.guided-listening-steps button.active {
  border-color: var(--accent);
  background: rgba(255, 200, 92, .12);
  color: var(--accent);
}

.guided-listening-steps button.done {
  border-color: rgba(104, 195, 140, .34);
  background: rgba(104, 195, 140, .10);
  color: var(--green);
}

.guided-listening-phase {
  padding: 10px;
  border: 1px solid rgba(255, 200, 92, .20);
  border-radius: var(--radius-sm);
  background: rgba(255, 200, 92, .055);
}

.guided-listening-quiz {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(94, 168, 255, .22);
  border-radius: var(--radius-sm);
  background: rgba(94, 168, 255, .065);
}

.guided-listening-quiz-head {
  display: grid;
  gap: 2px;
}

.guided-listening-quiz-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.guided-listening-quiz-head strong {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.4;
}

.guided-listening-cloze {
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .16);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.55;
}

.guided-listening-cloze.blank-only {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px;
  letter-spacing: 0;
}

.guided-listening-cloze.answered {
  color: var(--text-primary);
}

.guided-listening-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.guided-listening-option {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .055);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
}

.guided-listening-option:not(:disabled):hover {
  border-color: rgba(255, 200, 92, .42);
  background: rgba(255, 200, 92, .10);
}

.guided-listening-option.correct {
  border-color: rgba(104, 195, 140, .50);
  background: rgba(104, 195, 140, .12);
  color: var(--green);
}

.guided-listening-option.wrong {
  border-color: rgba(239, 111, 111, .46);
  background: rgba(239, 111, 111, .10);
  color: var(--red);
}

.guided-listening-feedback {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 8px 9px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04);
}

.guided-listening-feedback strong {
  color: var(--text-primary);
  font-size: 14px;
}

.guided-listening-feedback.correct strong {
  color: var(--green);
}

.guided-listening-feedback.wrong strong {
  color: var(--red);
}

.guided-listening-feedback span,
.guided-listening-feedback em,
.guided-listening-feedback p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.guided-listening-feedback em {
  color: var(--text-primary);
}

.guided-listening-review {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(94, 168, 255, .22);
  border-radius: var(--radius-sm);
  background: rgba(94, 168, 255, .055);
}

.guided-listening-review-list {
  display: grid;
  gap: 7px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 2px;
}

.guided-listening-review-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .045);
  text-align: left;
}

.guided-listening-review-item span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 850;
}

.guided-listening-review-item strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guided-listening-review-item em {
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}

.guided-listening-review-item.correct {
  border-color: rgba(104, 195, 140, .36);
}

.guided-listening-review-item.correct span,
.guided-listening-review-item.correct em {
  color: var(--green);
}

.guided-listening-review-item.wrong {
  border-color: rgba(239, 111, 111, .36);
}

.guided-listening-review-item.wrong span,
.guided-listening-review-item.wrong em {
  color: var(--red);
}

.guided-listening-wait .guided-vlog-pipeline {
  margin-bottom: 0;
}

.guided-listening-key {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 9px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .035);
}

.guided-listening-key.active {
  border-color: rgba(255, 200, 92, .42);
  background: rgba(255, 200, 92, .08);
}

.guided-listening-play {
  min-height: 34px;
  border: 1px solid rgba(255, 200, 92, .32);
  border-radius: 999px;
  background: rgba(255, 200, 92, .12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.guided-listening-key-body {
  display: grid;
  gap: 4px;
}

.guided-listening-key-body p {
  color: var(--text-muted);
}

.guided-listening-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guided-listening-summary div {
  border-bottom: 0;
  border-right: 1px solid var(--border-soft);
  padding: 0 8px 0 0;
}

.guided-listening-summary div:last-child {
  border-right: 0;
  padding-right: 0;
}

.guided-speaking {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid rgba(94, 168, 255, .22);
  border-radius: var(--radius-sm);
  background: rgba(94, 168, 255, .07);
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.45;
}

.guided-speaking strong {
  color: var(--text-primary);
}

.guided-speaking.recording {
  border-color: rgba(255, 200, 92, .42);
  background: rgba(255, 200, 92, .08);
}

.guided-speaking.error {
  border-color: rgba(239, 111, 111, .36);
  background: rgba(239, 111, 111, .08);
}

.guided-speaking-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.guided-speaking-score span {
  color: var(--accent);
  font-weight: 750;
}

.guided-speaking-score strong {
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.guided-speaking-metrics,
.guided-speaking-words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guided-speaking-audio {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.guided-speaking-audio span {
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 750;
}

.guided-speaking-audio audio {
  width: 100%;
  height: 32px;
}

.guided-speaking-metrics span,
.guided-speaking-words span {
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--text-secondary);
  font-size: 11.5px;
}

.guided-speaking p,
.guided-speaking ul {
  margin: 0;
}

.guided-speaking ul {
  padding-left: 18px;
}

.guided-speaking-drill {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.guided-speaking-drill-compact {
  gap: 8px;
  margin-top: 8px;
}

.guided-speaking-drill-head {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(94, 168, 255, .24);
  border-radius: var(--radius-sm);
  background: rgba(94, 168, 255, .07);
}

.guided-speaking-drill-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.guided-speaking-drill-head strong {
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.35;
}

.guided-speaking-drill-head em {
  color: var(--text-secondary);
  font-size: 13px;
  font-style: normal;
}

.guided-speaking-read-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .035);
}

.guided-speaking-read-card.recording {
  border-color: rgba(255, 200, 92, .44);
  background: rgba(255, 200, 92, .08);
}

.guided-speaking-read-card.analyzing,
.guided-speaking-read-card.preparing {
  border-color: rgba(94, 168, 255, .38);
  background: rgba(94, 168, 255, .08);
}

.guided-speaking-timer {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 62px;
  overflow: hidden;
  border: 1px solid rgba(255, 200, 92, .30);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .16);
}

.guided-speaking-timer strong {
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
  z-index: 1;
}

.guided-speaking-timer span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  z-index: 1;
}

.guided-speaking-timer i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  transition: width .35s ease;
}

.guided-speaking-read-text {
  display: grid;
  gap: 6px;
  align-content: center;
}

.guided-speaking-read-text strong {
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.48;
}

.guided-speaking-read-text strong.guided-speaking-cloze {
  color: #fff;
  letter-spacing: 0;
}

.guided-speaking-cloze-inline {
  display: inline;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  letter-spacing: 0;
}

.guided-speaking-read-text em {
  color: var(--text-secondary);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.guided-speaking-mask-hint {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.guided-speaking-mask-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.guided-speaking-peek {
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid rgba(255, 200, 92, .38);
  border-radius: 999px;
  background: rgba(255, 200, 92, .1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.guided-speaking-peek:hover {
  border-color: rgba(255, 200, 92, .58);
  background: rgba(255, 200, 92, .16);
}

.guided-speaking-hidden-terms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.guided-speaking-hidden-terms span {
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 750;
}

.guided-speaking-hidden-terms em {
  border: 1px solid rgba(255, 200, 92, .34);
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(255, 200, 92, .08);
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.guided-speaking-drill-status {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
}

.guided-speaking-drill-status strong {
  color: var(--text-primary);
  font-size: 14px;
}

.guided-speaking-drill-status span {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.guided-speaking-drill-status.active {
  border-color: rgba(255, 200, 92, .34);
  background: rgba(255, 200, 92, .07);
}

.guided-speaking-drill-status.done {
  border-color: rgba(104, 195, 140, .34);
  background: rgba(104, 195, 140, .08);
}

.guided-speaking-drill-status.done strong {
  color: var(--green);
}

.guided-speaking-drill-status.error {
  border-color: rgba(239, 111, 111, .36);
  background: rgba(239, 111, 111, .08);
}

.guided-speaking-drill-status.error strong {
  color: var(--red);
}

.guided-speaking-drill-result {
  margin-top: 0;
}

.guided-speaking-drill-result.pending {
  border-color: rgba(255, 200, 92, .34);
  background: rgba(255, 200, 92, .07);
}

.guided-speaking-drill-list {
  display: grid;
  gap: 7px;
  max-height: 210px;
  overflow-y: auto;
}

.guided-speaking-drill-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 54px;
  gap: 8px;
  align-items: start;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .025);
  color: var(--text-primary);
  text-align: left;
}

.guided-speaking-drill-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 850;
}

.guided-speaking-drill-item strong {
  min-width: 0;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.guided-speaking-drill-item em {
  color: var(--text-muted);
  font-size: 11.5px;
  font-style: normal;
  text-align: right;
}

.guided-speaking-drill-item.active {
  border-color: rgba(255, 200, 92, .48);
  background: rgba(255, 200, 92, .08);
}

.guided-speaking-drill-item.active > span {
  background: var(--accent);
  color: #1a1a1a;
}

.guided-speaking-drill-item.done {
  border-color: rgba(104, 195, 140, .30);
}

.guided-speaking-drill-item.done em {
  color: var(--green);
}

.guided-speaking-drill-item.pending {
  border-color: rgba(255, 200, 92, .34);
  background: rgba(255, 200, 92, .055);
}

.guided-speaking-drill-item.pending em {
  color: var(--accent);
}

.guided-speaking-drill-item.error {
  border-color: rgba(239, 111, 111, .34);
}

.guided-speaking-drill-item.error em {
  color: var(--red);
}

.guided-vlog-section-title {
  margin: 12px 0 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
}

.guided-vlog-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.guided-vlog-list-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .025);
  color: var(--text-primary);
  text-align: left;
}

.guided-vlog-list-item:hover,
.guided-vlog-list-item.active {
  border-color: rgba(255, 200, 92, .48);
  background: rgba(255, 200, 92, .08);
}

.guided-vlog-list-item.done {
  border-color: rgba(111, 207, 151, .28);
}

.guided-vlog-list-index {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 200, 92, .14);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.guided-vlog-list-item.done .guided-vlog-list-index {
  background: rgba(111, 207, 151, .14);
  color: var(--green);
}

.guided-vlog-list-main {
  min-width: 0;
}

.guided-vlog-list-text {
  display: -webkit-box;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guided-vlog-list-translation {
  display: -webkit-box;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guided-vlog-terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.guided-vlog-term {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(94, 168, 255, .22);
  border-radius: var(--radius-sm);
  background: rgba(94, 168, 255, .08);
  color: var(--text-primary);
  text-align: left;
}

.guided-vlog-term strong {
  font-size: 13px;
  color: var(--accent);
}

.guided-vlog-term span {
  font-size: 12.5px;
  color: var(--text-primary);
}

.guided-vlog-term em {
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.guided-vlog-output-label {
  display: block;
  margin-top: 12px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}

.guided-vlog-output {
  width: 100%;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(14, 17, 22, .74);
  color: var(--text-primary);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  resize: vertical;
}

.guided-vlog-output:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 200, 92, .14);
}

.guided-vlog-feedback {
  margin-top: 8px;
  color: var(--green);
  font-size: 12.5px;
  line-height: 1.45;
}

.guided-vlog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.guided-vlog-action {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  color: var(--text-secondary);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 650;
}

.guided-vlog-action.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #1a1a1a;
}

.guided-vlog-action:disabled,
.guided-vlog-action.disabled {
  opacity: .42;
  cursor: not-allowed;
}

.guided-vlog-action:hover,
.guided-vlog-term:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.guided-vlog-action:disabled:hover,
.guided-vlog-action.disabled:hover {
  border-color: var(--border);
  color: var(--text-secondary);
}

.transcript-line.guided-focus-line {
  border-left-color: var(--accent);
  background: rgba(255, 200, 92, .10);
}

.ghost-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}

.ghost-btn:hover { color: var(--text-primary); border-color: var(--text-faint); }
.ghost-btn.small { padding: 5px 12px; font-size: 12.5px; }
.ghost-btn.danger {
  color: var(--red);
  border-color: rgba(255, 95, 95, .45);
}

.ghost-btn.favorited {
  color: var(--accent);
  border-color: var(--accent-deep);
}

#quiz-btn.quiz-btn-loading {
  color: var(--text-faint);
  border-style: dashed;
  animation: quiz-pulse 1.6s ease-in-out infinite;
  cursor: default;
}
#quiz-btn.quiz-btn-ready {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  animation: quiz-ready-flash 3.2s ease-in-out;
}
@keyframes quiz-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}
@keyframes quiz-ready-flash {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent);
  }
  12%, 38%, 64% {
    transform: scale(1.05);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent);
  }
  25%, 51%, 77% {
    transform: scale(1);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 10%, transparent);
  }
}

.lang-toggle {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle select {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 13px;
}


.transcript-header {
  padding: 16px 18px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border-soft);
}

.transcript-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
}

.transcript-loading {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  color: var(--text-secondary);
  text-align: center;
}

.transcript-loading span {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
}

.transcript-loading small {
  max-width: 260px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* 字幕单句 - 核心设计元素 */
.transcript-line {
  padding: 12px 40px 12px 14px;  /* 右侧留出空间给收藏图标 */
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  cursor: pointer;
  color: #ffffff;
  font-size: 15.5px;
  line-height: 1.6;
  transition: background .2s, color .2s;
  position: relative;
}

.transcript-line:hover { background: var(--bg-elevated); }

.transcript-line.played { color: var(--text-secondary); }

/* 正在播放的句子：高亮+左侧光标条，致敬影院字幕的"当前行" */
.transcript-line.active {
  background: var(--accent-soft);
  color: var(--text-primary);
  font-weight: 500;
}

.transcript-line.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.transcript-line .word {
  border-bottom: 1px solid transparent;
  transition: border-color .12s, color .12s;
  padding: 0 1px;
}

.transcript-line .word:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.transcript-line .word.saved {
  color: var(--green);
}

/* 句子收藏图标：默认隐藏，鼠标悬停在整行上时浮现（致敬视频网站的悬浮收藏交互） */
.sentence-save-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-faint);
  opacity: 0;
  transition: opacity .15s, color .15s, transform .1s;
  padding: 4px;
  line-height: 1;
}

.transcript-line:hover .sentence-save-btn { opacity: 1; }

.sentence-save-btn:hover { color: var(--accent); transform: translateY(-50%) scale(1.15); }

.transcript-zh {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-switch-btn {
  background: none;
  border: none;
  padding: 2px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.lang-switch-btn.active {
  background: var(--accent);
  color: #fff;
}

.lang-switch-btn:hover:not(.active) {
  background: var(--bg-elevated);
}

/* 已收藏状态：图标常驻显示（不需要hover才能看到已收藏的标记），实心样式 */
.sentence-save-btn.saved {
  opacity: 1;
  color: var(--accent);
}

/* ===================== 单词释义弹窗 ===================== */
.word-popup {
  position: fixed;
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  width: 320px;
  max-width: 90vw;
  max-height: min(76vh, 680px);
  overflow: hidden;
}

.word-popup-inner {
  padding: 18px;
  max-height: inherit;
  overflow-y: auto;
}

.word-popup-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.popup-word {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.popup-audio-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 12px;
  line-height: 1;
  color: var(--text-secondary);
  flex-shrink: 0;
  align-self: center;  /* 覆盖父级.word-popup-header的baseline对齐，圆形图标按钮居中对齐更协调 */
  transition: color .15s, border-color .15s;
}

.popup-audio-btn:hover {
  color: var(--accent);
  border-color: var(--accent-deep);
}

.popup-audio-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.popup-pron {
  color: var(--text-faint);
  font-size: 13px;
  flex: 1;
}

.popup-close {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 20px;
  line-height: 1;
  padding: 0;
}

.popup-pos {
  font-size: 12px;
  color: var(--accent);
  text-transform: lowercase;
  margin-bottom: 10px;
}

.popup-loading {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 10px 0;
}

.popup-def {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 6px;
}

.popup-def-zh {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.popup-example {
  font-size: 13.5px;
  color: var(--text-faint);
  font-style: italic;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}

.popup-dictionary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

.popup-dictionary-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.popup-dictionary-title em {
  color: var(--text-faint);
  font-style: normal;
  font-weight: 500;
  text-transform: none;
}

.popup-dictionary-overview,
.popup-dictionary-note {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 13.5px;
  line-height: 1.55;
}

.popup-dictionary-note {
  color: var(--text-secondary);
}

.popup-dictionary-senses {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.popup-dictionary-senses div {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.025);
}

.popup-dictionary-senses span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.popup-dictionary-senses strong {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.4;
}

.popup-dictionary-senses em,
.popup-dictionary-examples p,
.popup-dictionary-family {
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.45;
}

.popup-dictionary-senses em {
  font-style: normal;
}

.popup-dictionary-examples {
  margin-top: 8px;
}

.popup-dictionary-examples p {
  margin: 0 0 6px;
}

.popup-dictionary-family {
  margin: 8px 0 0;
}

.save-word-btn {
  width: 100%;
  margin-top: 14px;
  background: var(--accent);
  color: #1a1a1a;
  border: none;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px;
  border-radius: var(--radius-sm);
}

.save-word-btn:disabled { opacity: .6; }

/* ===================== 生词本 ===================== */
.section-header { padding: 50px 0 26px; }

.section-header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 6px;
}

.section-sub { color: var(--text-secondary); font-size: 14px; margin: 0; }

.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.vocab-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
}

.vocab-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.vocab-card-word {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.vocab-card-audio-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 13px;
  line-height: 1;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: color .15s, border-color .15s;
}

.vocab-card-audio-btn:hover {
  color: var(--accent);
  border-color: var(--accent-deep);
}

.vocab-card-audio-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.vocab-card-pos {
  font-size: 11.5px;
  color: var(--accent);
  margin-bottom: 8px;
}

.vocab-card-def {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.vocab-card-source-wrap,
.flashcard-source-wrap,
.flashcard-example-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
}

.vocab-card-source {
  font-size: 12.5px;
  color: var(--text-faint);
  font-style: italic;
  flex: 1;
}

.vocab-card-sentence-audio {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 0 4px;
  opacity: 0.5;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.vocab-card-sentence-audio:hover,
.vocab-card-sentence-audio.speaking {
  opacity: 1;
}

.vocab-card-delete {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 12px;
  margin-top: 10px;
  padding: 0;
}

.vocab-card-delete:hover { color: var(--red); }

.empty-state {
  text-align: center;
  color: var(--text-faint);
  padding: 60px 20px;
  font-size: 14.5px;
}

/* ===================== 复习四选一 ===================== */
.review-zone { max-width: 520px; margin: 0 auto; }

.review-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.review-score-row { color: var(--text-secondary); }

.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.quiz-label {
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 18px;
}

.review-controls {
  text-align: center;
  margin-top: 16px;
}

.quiz-hint-cycle-btn {
  width: 100%;
  background: none;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-faint);
  cursor: pointer;
  margin-bottom: 16px;
  transition: color .15s, border-color .15s;
  text-align: center;
}
.quiz-hint-cycle-btn:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.quiz-hint-cycle-btn:disabled { opacity: 0.35; cursor: default; }

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* ── 新手指引按钮 ── */
.guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  margin-right: 0;
}
.guide-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-faint);
  background: rgba(255, 255, 255, 0.06);
}
.guide-btn i { font-size: 14px; }

#pricing-nav-btn {
  color: var(--accent);
  border-color: var(--accent-deep);
  background: var(--accent-soft);
}
#pricing-nav-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── 新手指引弹窗 ── */
.guide-modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.guide-modal-overlay.hidden { display: none; }
.guide-modal-inner {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px 28px 24px;
  width: 100%; max-width: 500px;
  max-height: 90vh; overflow-y: auto;
}
.guide-modal-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px;
}
.guide-modal-header h2 { font-size: 17px; font-weight: 600; margin: 0 0 4px; color: var(--text-primary); }
.guide-modal-header p  { font-size: 13px; color: var(--text-muted); margin: 0; }
#guide-modal-close {
  background: none; border: 1px solid var(--border); border-radius: 50%;
  width: 28px; height: 28px; cursor: pointer; flex-shrink: 0;
  color: var(--text-muted); font-size: 12px; line-height: 1;
}
#guide-modal-close:hover { color: var(--text-primary); }
.guide-steps { display: flex; flex-direction: column; }
.guide-step {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.guide-step:last-child { border-bottom: none; }
.guide-step-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  margin-top: 1px;
}
.guide-step-title { font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 3px; }
.guide-step-desc  { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.guide-tag {
  display: inline-block; margin-top: 6px;
  font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 500;
}
.guide-tag-purple { background: #EEEDFE; color: #3C3489; }
.guide-tag-teal   { background: #E1F5EE; color: #0F6E56; }
.guide-tag-amber  { background: #FAEEDA; color: #854F0B; }
.guide-tag-blue   { background: #E6F1FB; color: #185FA5; }
.guide-footer-note {
  margin-top: 16px; padding: 12px 14px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 10px; font-size: 13px; color: var(--text-secondary); line-height: 1.6;
}
.guide-footer-note strong { color: var(--text-primary); font-weight: 500; }
.guide-start-btn {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
}
.guide-start-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.quiz-option-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: background .12s, border-color .12s, color .12s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.quiz-option-btn:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.quiz-option-btn.correct {
  background: rgba(52,199,89,.15);
  border-color: var(--green);
  color: var(--green);
}
.quiz-option-btn.wrong {
  background: rgba(255,59,48,.12);
  border-color: var(--red);
  color: var(--red);
}
.quiz-option-btn:disabled { cursor: default; }

.quiz-option-label {
  font-size: 11px;
  font-weight: 700;
  background: var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  flex-shrink: 0;
  color: var(--text-faint);
}
.quiz-option-btn.correct .quiz-option-label { background: var(--green); color: #fff; }
.quiz-option-btn.wrong .quiz-option-label { background: var(--red); color: #fff; }

.quiz-detail {
  border-top: 1px solid var(--border-soft);
  margin-top: 4px;
  padding-top: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quiz-detail-word {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-display);
}
.quiz-detail.correct .quiz-detail-word { color: var(--green); }
.quiz-detail.wrong   .quiz-detail-word { color: var(--red); }
.quiz-detail-row {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-primary);
}
.quiz-detail-row.zh { color: var(--text-secondary); }
.quiz-detail-row.faint {
  font-size: 14.5px;
  color: var(--text-primary);
  font-style: normal;
}

.quiz-next-btn {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}
.quiz-next-btn:hover { opacity: .88; }

/* ===================== 登录弹窗 ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 360px;
  max-width: 90vw;
  position: relative;
}

.modal h3 {
  font-family: var(--font-display);
  margin: 0 0 16px;
  font-size: 21px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 20px;
}

.auth-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.auth-method-tab {
  border: none;
  border-radius: 6px;
  padding: 8px;
  color: var(--text-secondary);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.auth-method-tab.active {
  color: #1a1a1a;
  background: var(--accent);
}

#auth-form,
#phone-auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#auth-form input,
#phone-auth-form input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

#auth-form input:focus,
#phone-auth-form input:focus { border-color: var(--accent); }

#auth-submit,
#auth-phone-submit,
#auth-phone-code-btn {
  background: var(--accent);
  color: #1a1a1a;
  border: none;
  font-weight: 600;
  padding: 11px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
}

.phone-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
}

#auth-phone-code-btn {
  margin-top: 0;
  padding: 0 10px;
  white-space: nowrap;
}

#auth-phone-code-btn:disabled,
#auth-phone-submit:disabled {
  opacity: .62;
  cursor: not-allowed;
}

.auth-dev-code {
  margin: -2px 0 0;
  padding: 8px 10px;
  border: 1px dashed rgba(244, 182, 63, .45);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 12px;
  background: rgba(244, 182, 63, .08);
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
}

.auth-error {
  color: var(--red);
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

/* ===================== Toast ===================== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  z-index: 400;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

/* ===================== 个人中心 / Tab 切换 ===================== */
.profile-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 24px;
}

.profile-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14.5px;
  padding: 10px 18px;
  position: relative;
  top: 1px;
}

.profile-tab:hover { color: var(--text-primary); }

.profile-tab.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.profile-panel { display: none; }
.profile-panel.active { display: block; }

/* 视频卡片网格 - 历史记录 & 收藏列表 共用 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s;
}

.video-card-body { padding: 12px 16px 16px; }

.video-card-thumb-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.video-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}
.video-card:hover .video-card-thumb-wrap img { transform: scale(1.03); }

.video-card:hover { border-color: var(--text-faint); }

.video-card-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-meta {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 10px;
}

/* 断点续播进度条 */
.video-card-progress-track {
  height: 4px;
  background: var(--border-soft);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.video-card-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.video-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.video-card-resume {
  font-size: 12px;
  color: var(--accent);
}

.video-card-remove {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 12px;
  padding: 0;
}

.video-card-remove:hover { color: var(--red); }

/* ===================== OSS media library ===================== */
.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -8px 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.library-toolbar strong {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.library-toolbar span {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.library-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.library-select {
  min-height: 32px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 700;
}

.library-select.small {
  min-height: 30px;
}

.library-status {
  margin: -4px 0 16px;
  color: var(--text-secondary);
  font-size: 13px;
}

.library-status.loading { color: var(--accent); }
.library-status.error { color: var(--red); }

.library-job-status {
  margin: -2px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 12.5px;
}

.library-job-status strong {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
  margin-bottom: 6px;
}

.library-job-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 8px;
}

.library-job-status-row span {
  color: var(--text-secondary);
}

.library-job-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.library-job-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width .2s ease;
}

.library-job-current {
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-faint);
}

.library-vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.library-vocab-card {
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

.library-vocab-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.library-vocab-card-head b {
  color: var(--text-primary);
  font-size: 14px;
}

.library-vocab-card-head span {
  color: var(--accent);
  font-weight: 800;
}

.library-vocab-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  color: var(--text-secondary);
}

.library-vocab-metrics span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-card {
  cursor: default;
}

.library-card-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(30, 114, 111, 0.12)),
    var(--bg-elevated);
}

.library-card-mark {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: .04em;
}

.library-card-ext {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .32);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
}

.library-key {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-faint);
  font-size: 11.5px;
  margin-bottom: 12px;
}

.library-card-actions {
  align-items: flex-start;
  gap: 10px;
}

.library-card-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.library-preview {
  margin-top: 14px;
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
}

.library-preview-summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12.5px;
}

.library-preview-summary strong { color: var(--accent); }
.library-preview-summary span { color: var(--text-faint); }

.library-preview ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.library-preview li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.45;
}

.library-preview li span {
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.library-preview li p {
  margin: 0;
  color: var(--text-primary);
}

.library-preview-state {
  color: var(--text-secondary);
  font-size: 12.5px;
}

.library-preview-state.error { color: var(--red); }

@media (max-width: 640px) {
  .library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .library-toolbar-actions {
    justify-content: flex-start;
  }

  .library-card-actions {
    flex-direction: column;
  }
}

/* ===================== Reading materials ===================== */
.reading-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.reading-card-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(30, 114, 111, 0.14), rgba(22, 78, 99, 0.08)),
    var(--bg-elevated);
}

.reading-doc-icon {
  width: 82px;
  height: 104px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
  .reading-header {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ===================== 收藏句子列表 ===================== */
.sentence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.sentence-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: border-color .15s;
}

.sentence-card:hover { border-color: var(--text-faint); }

.sentence-card-text {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.sentence-card-meta {
  font-size: 12.5px;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
}

.sentence-card-source {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  margin-right: 10px;
}

.sentence-card-remove {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 12px;
  padding: 0;
  flex-shrink: 0;
}

.sentence-card-remove:hover { color: var(--red); }

/* 收藏句子 Tab 顶部工具栏 */
.sentences-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.primary-btn {
  background: var(--accent);
  color: #1a1a1a;
  border: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
}

.primary-btn:hover { filter: brightness(1.08); }

.sentences-count {
  font-size: 13px;
  color: var(--text-faint);
}

/* ===================== 沉浸式句子播放器（听力训练）=====================
   设计理念：像音乐播放器一样，画面退场，文字和播放控制是绝对主角。
   YouTube播放器本体被压缩到1x1像素藏起来，只取音频流，不展示视频画面。
*/

/* ===================== 迷你悬浮播放器 ===================== */
/* #view-watch 加 is-mini：强制显示并固定到右下角，所有子元素不移动，YouTube postMessage 不断 */
#view-watch.is-mini {
  display: block !important;   /* 覆盖 .view 的 display:none */
  position: fixed !important;
  bottom: 24px;
  right: 24px;
  width: 320px;
  max-width: none;
  padding: 0;
  margin: 0;
  z-index: 9000;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.65);
  overflow: hidden;
  animation: mini-slide-in .25s ease forwards;
}
@keyframes mini-slide-in {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* 迷你模式下只保留播放器区块，隐藏其余内容（字幕面板、工具栏等） */
#view-watch.is-mini > *:not(#player-block) { display: none !important; }
#view-watch.is-mini #player-block { padding: 0; }
#view-watch.is-mini .player-layout { display: block; }
#view-watch.is-mini .player-col { width: 100%; }
/* watch-list-col is outside player-layout so no is-mini override needed */
#view-watch.is-mini .player-wrap {
  border-radius: 0;
  width: 320px;
  aspect-ratio: 16/9;
}
#view-watch.is-mini #yt-player { width: 100%; height: 100%; }
#view-watch.is-mini #yt-player iframe { width: 320px !important; height: 180px !important; }
#view-watch.is-mini #player-poster { display: none; }
#view-watch.is-mini .player-toolbar { display: none; }
#view-watch.is-mini .right-col { display: none !important; }

/* 控制条：正常模式隐藏，迷你模式显示 */
.mini-bar { display: none; }
#view-watch.is-mini .mini-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,.72);
  padding: 6px 8px;
  gap: 6px;
}
.mini-bar-title {
  font-size: 11px;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.mini-bar-actions { display: flex; gap: 4px; flex-shrink: 0; }
.mini-bar-btn {
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  border-radius: 5px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.mini-bar-btn:hover { background: rgba(255,255,255,.25); }

.sentence-player-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: radial-gradient(ellipse at top, #1a2030 0%, var(--bg) 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sentence-player-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  padding: 48px 40px 36px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.sp-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 24px;
  line-height: 1;
  padding: 4px;
}

.sp-close:hover { color: var(--text-primary); }

/* 隐藏YouTube播放器画面：只保留音频，1x1像素但保持加载行为正常 */
.sp-yt-player-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.sp-content {
  text-align: center;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sp-source {
  font-size: 12.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.sp-sentence-text {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: 28px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-progress-track {
  height: 3px;
  background: var(--border-soft);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.sp-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width .1s linear;
}

.sp-counter {
  font-size: 12px;
  color: var(--text-faint);
}

.sp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 36px 0 28px;
}

.sp-ctrl-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  padding: 8px;
  line-height: 1;
  transition: color .15s, transform .1s;
}

.sp-ctrl-btn:hover { color: var(--text-primary); transform: scale(1.1); }

.sp-ctrl-main {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1a1a;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-ctrl-main:hover { color: #1a1a1a; filter: brightness(1.08); transform: scale(1.05); }

.sp-modes {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sp-mode-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12.5px;
  padding: 7px 13px;
  border-radius: 20px;
  transition: color .15s, border-color .15s;
}

.sp-mode-btn:hover { color: var(--text-primary); }

.sp-mode-btn.active {
  color: var(--accent);
  border-color: var(--accent-deep);
  background: var(--accent-soft);
}

/* ===================== 新闻学习区 ===================== */
.news-area {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-soft);
}

.news-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.news-column { min-width: 0; }

.news-section-header {
  margin-bottom: 24px;
}

.news-section-header h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 6px;
}

.news-section-header-with-action {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.news-refresh-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.news-refresh-btn.spinning {
  animation: news-refresh-spin 0.8s linear infinite;
}

@keyframes news-refresh-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.news-source-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.news-source-filter select {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

.news-loading {
  text-align: center;
  color: var(--text-faint);
  padding: 30px;
  font-size: 13.5px;
}

/* 右侧：生词新闻卡片网格（原有样式保留） */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
}

.news-card-source {
  font-size: 11.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card-time {
  text-transform: none;
  letter-spacing: normal;
}

.news-card-title {
  font-family: var(--font-display);
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.news-card-summary {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.news-card-words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.news-word-chip {
  font-size: 11.5px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid var(--accent-deep);
}

/* 左侧：最新新闻，垂直列表，强调可读性（用来"读新闻学英语"） */
.news-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.news-item {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border-soft);
}

.news-item:last-child { border-bottom: none; }

.news-item-source {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-item-time {
  text-transform: none;
  letter-spacing: normal;
}

.news-item-title-row,
.news-item-summary-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.news-audio-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 4px;
  opacity: 0.4;
  transition: opacity 0.2s;
  flex-shrink: 0;
  margin-top: 2px;
}

.news-audio-btn:hover,
.news-audio-btn.speaking {
  opacity: 1;
}

.news-item-title {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.news-item-summary {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-faint);
  margin-top: 4px;
}

/* 正文中命中生词本的单词：高亮着色，访客看到的是没有这个class的纯文本 */
.news-item-title .vocab-hit,
.news-card-title .vocab-hit,
.news-item-summary .vocab-hit,
.news-card-summary .vocab-hit {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid var(--accent-deep);
}

/* 新闻标题/摘要里每个单词都可点击查词，跟视频字幕的点词交互保持一致的视觉反馈 */
.news-item-title .word,
.news-card-title .word,
.news-item-summary .word,
.news-card-summary .word {
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color .12s, color .12s;
  padding: 0 1px;
}

.news-item-title .word:hover,
.news-card-title .word:hover,
.news-item-summary .word:hover,
.news-card-summary .word:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* 命中生词本的单词鼠标悬停时，边框颜色统一用高亮色，不被普通word的hover样式覆盖变浅 */
.news-item-title .word.vocab-hit:hover,
.news-card-title .word.vocab-hit:hover,
.news-item-summary .word.vocab-hit:hover,
.news-card-summary .word.vocab-hit:hover {
  border-bottom-color: var(--accent-deep);
}

/* 底部操作行：查看原文 + 翻译按钮 并排显示 */
.news-item-actions,
.news-card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

/* 查看原文按钮：独立的跳转入口，不影响标题内单词的点击查词 */
.news-read-link {
  font-size: 12.5px;
  color: var(--blue);
  text-decoration: none;
}

.news-read-link:hover {
  text-decoration: underline;
}

/* 按需翻译按钮：点击后翻译这一条新闻，翻译完成后会被移除（避免重复点击） */
.news-translate-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  transition: color .15s, border-color .15s;
}

.news-translate-btn:hover {
  color: var(--accent);
  border-color: var(--accent-deep);
}

.news-translate-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* 中文译文：显示在英文原文下方，用左侧竖线和不同颜色区分，一眼能看出是翻译而非原文 */
.news-translation {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-top: 10px;
  padding-left: 10px;
  border-left: 2px solid var(--accent-deep);
}

.news-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.news-page-info {
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ===================== 右栏 Tab 切换 ===================== */
.guided-global-chunk-nav {
  flex-shrink: 0;
  padding: 8px 8px 0;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(14, 17, 22, .34);
}

.guided-global-chunk-label {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 800;
}

.guided-global-chunk-nav .guided-vlog-chunk-strip {
  margin-bottom: 0;
  padding-bottom: 8px;
}

.guided-global-chunk-nav .guided-vlog-chunk-card {
  flex-basis: 112px;
}

.guided-global-chunk-nav .guided-vlog-chunk-meta strong {
  font-size: 11.5px;
}

.guided-global-chunk-nav .guided-vlog-chunk-meta em {
  font-size: 10.5px;
}

.right-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  flex-shrink: 0;
}

.right-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-family: var(--font-body);
  padding: 8px 16px;
  cursor: pointer;
  transition: color .12s, border-color .12s;
  margin-bottom: -1px;
}

.right-tab:hover { color: var(--text-primary); }

.right-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.right-tab-ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 14px;
  border: 1px solid rgba(255, 200, 92, .42);
  border-radius: 999px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.right-tab.is-loading::after,
.right-tab.is-ready::after,
.right-tab.is-empty::after {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.right-tab.is-loading::after {
  content: "生成中";
  color: #5ea8ff;
  background: rgba(94, 168, 255, .12);
  border: 1px solid rgba(94, 168, 255, .28);
}

.right-tab.is-ready::after {
  content: "已就绪";
  color: var(--green);
  background: rgba(52, 199, 89, .11);
  border: 1px solid rgba(52, 199, 89, .25);
}

.right-tab.is-empty::after {
  content: "稍后试";
  color: var(--text-muted);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border-soft);
}

.right-tab-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 4px;
}

.right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

:is(#panel-listen, #panel-speak, #panel-guided) {
  overflow-y: auto;
  padding: 10px 8px 12px;
}

:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-card {
  min-height: 100%;
  margin: 0;
  padding: 12px 10px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-focus {
  background: rgba(14, 17, 22, .36);
}

:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-card--compact {
  padding: 8px 8px 10px;
}

:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-card--compact .guided-vlog-focus {
  background: transparent;
}

:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-list {
  max-height: min(520px, calc(100vh - 320px));
}

:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-card--compact .guided-vlog-list {
  max-height: min(650px, calc(100vh - 210px));
}

/* ===================== 词汇亮点面板 ===================== */
.vh-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 4px;
  flex-shrink: 0;
}

.vh-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.vh-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.vh-sub {
  font-size: 12.5px;
  color: var(--text-faint);
}

.vh-loading {
  font-size: 12.5px;
  color: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}

.vh-loading.hidden { display: none; }
.vh-rescan-btn { margin-left: auto; font-size: 12px; padding: 3px 10px; flex-shrink: 0; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.vh-chips-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.vh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  height: 100%;
  overflow-y: auto;
  padding: 4px 0 16px;
  align-content: flex-start;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.vh-chips::-webkit-scrollbar { width: 4px; }
.vh-chips::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* 底部渐变遮罩，提示还有更多 */
.vh-chips-wrap::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
  opacity: 1;
  transition: opacity .2s;
}

.vh-chips-wrap.scrolled-to-end::after {
  opacity: 0;
}

.vh-chip {
  padding: 6px 13px;
  border-radius: 12px;
  font-size: 13px;
  font-family: var(--font-body);
  background: var(--bg-elevated);
  color: #ffffff;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.vh-chip-word {
  font-size: 13px;
  font-weight: 500;
  color: inherit;
}

.vh-chip-zh {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  line-height: 1.2;
}

.vh-chip:hover .vh-chip-zh,
.vh-chip.active .vh-chip-zh {
  color: var(--accent);
  opacity: 0.8;
}

.vh-chip:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.vh-chip.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.vh-chip-phrase {
  background: #5ea8ff0f;
  border-color: #5ea8ff30;
  color: #ffffff;
}

.vh-chip-phrase:hover,
.vh-chip-phrase.active {
  background: #5ea8ff22;
  color: var(--blue);
  border-color: var(--blue);
}

.teaching-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.teaching-status {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.teaching-status.ready { color: var(--accent); }
.teaching-status.loading { color: var(--blue); }
.teaching-status.error { color: #ff8f8f; }
.teaching-status.fallback { color: var(--text-secondary); }

.teaching-highlight-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  overflow-y: auto;
}

.teaching-empty {
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.6;
  padding: 18px 4px;
}

.teaching-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.teaching-time {
  align-self: flex-start;
  border: 1px solid #ffc85c45;
  background: #ffc85c16;
  color: var(--accent);
  border-radius: 6px;
  padding: 5px 6px;
  font-size: 12px;
  cursor: pointer;
}

.teaching-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.teaching-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.teaching-term {
  border: none;
  background: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.teaching-kind {
  font-size: 11px;
  color: var(--blue);
  background: #5ea8ff18;
  border: 1px solid #5ea8ff30;
  border-radius: 5px;
  padding: 1px 6px;
}

.teaching-save {
  margin-left: auto;
  border: 1px solid #ffc85c55;
  background: #ffc85c14;
  color: var(--accent);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.teaching-save:hover {
  background: #ffc85c24;
  border-color: #ffc85c85;
}

.teaching-save:disabled {
  cursor: default;
  opacity: .75;
}

.teaching-save.saved {
  color: var(--text-secondary);
  background: var(--bg-soft);
  border-color: var(--border);
}

.teaching-meaning {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.teaching-point,
.teaching-quote,
.teaching-quiz {
  font-size: 12.5px;
  line-height: 1.5;
}

.teaching-point { color: var(--text-primary); }
.teaching-quote { color: var(--text-secondary); }
.teaching-quiz {
  color: var(--text-secondary);
  border-left: 3px solid var(--border);
  padding-left: 8px;
}

/* 词汇 tab 下半：释义展示区（固定50%高度，始终可见） */
.vh-detail {
  flex: 0 0 50%;
  border-top: 1px solid var(--border);
  padding: 14px 16px 12px;
  overflow-y: auto;
  min-height: 0;
}

.vh-detail.hidden { display: none; }

.vh-detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.vh-detail-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vh-detail-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.vh-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.vh-card-word {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.vh-card-pron {
  font-size: 13px;
  color: var(--text-secondary);
}

.vh-card-pos {
  font-size: 11.5px;
  color: var(--blue);
  background: #5ea8ff18;
  border: 1px solid #5ea8ff30;
  border-radius: 5px;
  padding: 1px 7px;
}

.vh-save-btn {
  margin-left: auto;
  font-size: 12.5px;
  padding: 5px 14px;
}

.vh-close-btn {
  font-size: 14px;
  color: var(--text-faint);
}

.vh-card-loading {
  color: var(--text-faint);
  font-size: 13px;
  padding: 6px 0;
}

.vh-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vh-def-zh {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.vh-def-en {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.vh-example {
  font-size: 13px;
  color: var(--text-primary);
  font-style: normal;
  border-left: 3px solid var(--border);
  padding-left: 10px;
  margin-top: 4px;
}

.vh-source {
  font-size: 12px;
  color: var(--text-primary);
  font-style: normal;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

/* ===================== 响应式 ===================== */
@media (max-width: 880px) {
  .player-layout { grid-template-columns: 1fr; }
  .watch-list-col { display: none; }
  .transcript-col { max-height: 420px; }
  .guided-vlog-terms { grid-template-columns: 1fr; }
  .guided-vlog-action { flex: 1 1 150px; }
  #view-watch.reading-mode {
    padding: 0 12px 28px;
  }
  #view-watch.reading-mode .watch-page-layout .player-block {
    padding-top: 14px;
  }
  #view-watch.reading-mode .player-layout {
    grid-template-columns: 1fr;
  }
  #view-watch.reading-mode .player-wrap {
    height: clamp(500px, calc(100vh - 150px), 760px);
  }
  #view-watch.reading-mode .transcript-col {
    height: 360px;
  }
  #view-watch.reading-mode .pdf-book {
    padding: 12px;
  }
  #view-watch.reading-mode .pdf-book-page {
    padding: 26px 22px;
  }
  #view-watch.reading-mode .pdf-book-toolbar {
    grid-template-columns: 72px 1fr 72px;
  }
  .hero { min-height: auto; padding: 34px 0 30px; }
  .hero-shell { grid-template-columns: 1fr; gap: 28px; }
  .demo-showcase { max-width: 100%; justify-self: stretch; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 15px; }
  .url-form { flex-direction: column; }
  .url-form button { padding: 12px 18px; }
  .topbar-inner { gap: 16px; flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; }
  .sentence-player-panel { padding: 36px 22px 28px; border-radius: 20px; }
  .sp-sentence-text { font-size: 21px; }
  .sp-controls { gap: 20px; margin: 28px 0 22px; }
  .news-columns { grid-template-columns: 1fr; gap: 32px; }
}

/* ── 词汇测验弹窗 ─────────────────────────────────────────────────── */
.quiz-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.quiz-modal.hidden { display: none; }

.quiz-modal-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  padding: 30px 28px 24px;
  position: relative;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .24);
}

.quiz-close-btn {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 18px;
  color: var(--text-muted); cursor: pointer; line-height: 1;
}
.quiz-close-btn:hover { color: var(--text-primary); }

.quiz-loading, .quiz-not-ready {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px; padding: 40px 0;
  color: var(--text-muted); font-size: 14px;
  text-align: center;
}

.vq-header {
  padding-right: 28px;
  margin-bottom: 22px;
}
.vq-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.vq-header h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--text-primary);
  font-family: var(--font-display);
}
.vq-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}
.vq-loading-sub {
  color: var(--text-faint);
  font-size: 12px;
}
.vq-empty-title {
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 700;
}

.quiz-progress-wrap {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.quiz-progress-bar {
  flex: 1; height: 4px; background: var(--border-soft);
  border-radius: 2px; overflow: hidden;
}
.quiz-progress-fill {
  height: 100%; background: var(--accent, #6366f1);
  border-radius: 2px; transition: width .3s;
}
.quiz-progress-text { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.vq-score {
  display: inline-flex;
  gap: 8px;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 700;
}
.vq-score-good { color: var(--green); }
.vq-score-bad { color: var(--red); }

.vq-hint-btn {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  min-height: 48px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.vq-hint-btn:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.vq-hint-btn:disabled {
  color: var(--text-faint);
  cursor: default;
}

.vq-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.vq-option-btn {
  min-height: 54px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
  text-align: left;
  background: var(--bg-elevated);
  color: var(--text-primary);
  transition: border-color .15s, background .15s, color .15s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vq-option-btn:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.vq-option-label {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  color: var(--text-faint);
  background: var(--border-soft);
  flex-shrink: 0;
}
.vq-option-btn.correct {
  border-color: var(--green);
  background: rgba(52, 199, 89, .14);
  color: var(--green);
}
.vq-option-btn.wrong {
  border-color: var(--red);
  background: rgba(255, 59, 48, .12);
  color: var(--red);
}
.vq-option-btn.correct .vq-option-label { background: var(--green); color: #fff; }
.vq-option-btn.wrong .vq-option-label { background: var(--red); color: #fff; }
.vq-option-btn:disabled { cursor: default; }

.vq-detail {
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vq-detail-word {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-display);
}
.vq-detail-word.correct { color: var(--green); }
.vq-detail-word.wrong { color: var(--red); }
.vq-detail-row {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-primary);
}
.vq-detail-row.zh { color: var(--text-secondary); }
.vq-detail-row.faint {
  color: var(--text-primary);
  font-size: 14.5px;
  font-style: normal;
}

.vq-primary-btn, .vq-secondary-btn {
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, background .15s, border-color .15s;
}
.vq-primary-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.vq-secondary-btn {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.vq-primary-btn:hover, .vq-secondary-btn:hover { opacity: .86; }

.vq-result {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px; padding: 24px 0 8px; text-align: center;
}
.vq-result-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
}
.vq-result h3 { font-size: 20px; margin: 4px 0 0; }
.vq-result p {
  color: var(--text-secondary);
  margin: 0 0 8px;
  line-height: 1.6;
}
.vq-result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

@media (max-width: 520px) {
  .quiz-modal-inner { padding: 26px 20px 20px; }
  .vq-options, .vq-result-actions { grid-template-columns: 1fr; }
}

/* ── 升级提示弹窗 ── */
.upgrade-modal-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px 28px;
  width: 100%; max-width: 400px;
  text-align: center;
  position: relative;
}
.upgrade-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 16px; cursor: pointer; padding: 4px 8px;
}
.upgrade-modal-close:hover { color: var(--text-primary); }
.upgrade-icon { font-size: 44px; margin-bottom: 12px; }
.upgrade-modal-inner h2 { font-size: 18px; font-weight: 600; margin: 0 0 8px; color: var(--text-primary); }
.upgrade-desc { font-size: 13.5px; color: var(--text-muted); margin: 0 0 20px; line-height: 1.6; }
.upgrade-features {
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  text-align: left;
  display: flex; flex-direction: column; gap: 8px;
}
.upgrade-feature-item { font-size: 13.5px; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.upgrade-check { color: var(--accent); font-weight: 600; font-size: 14px; }
.upgrade-cta-wrap { display: flex; gap: 10px; justify-content: center; margin-bottom: 14px; }
.upgrade-cta-btn {
  padding: 9px 20px; border-radius: var(--radius-sm);
  font-size: 14px; cursor: pointer; border: 1px solid var(--border);
  background: none; color: var(--text-secondary);
}
.upgrade-cta-btn:hover { color: var(--text-primary); }
.upgrade-cta-primary {
  background: var(--accent); color: #1a1a1a; border-color: var(--accent);
  font-weight: 500;
}
.upgrade-cta-primary:hover { opacity: 0.9; }
.upgrade-hint { font-size: 12px; color: var(--text-faint); margin: 0; }

/* ── 方案对比弹窗 ── */
.pricing-modal-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px 24px;
  width: 100%; max-width: 540px;
  position: relative;
}
.pricing-header { text-align: center; margin-bottom: 20px; }
.pricing-title { font-size: 17px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.pricing-sub { font-size: 13px; color: var(--text-muted); }
.pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
}
.pricing-card-pro { border: 2px solid var(--accent); }
.pricing-plan-label { font-size: 11px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; letter-spacing: .04em; }
.pricing-plan-label-pro { color: var(--accent); }
.pricing-badge { background: var(--accent-soft); color: var(--accent); font-size: 10px; padding: 1px 6px; border-radius: 20px; vertical-align: middle; }
.pricing-plan-name { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.pricing-plan-price { font-size: 12px; color: var(--text-muted); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.pricing-rows { display: flex; flex-direction: column; }
.pricing-row { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; border-bottom: 0.5px solid var(--border); }
.pricing-row:last-child { border-bottom: none; }
.pr-icon { font-size: 13px; width: 16px; flex-shrink: 0; margin-top: 1px; text-align: center; }
.pr-yes { color: var(--green); }
.pr-inf { color: var(--accent); }
.pr-limit { color: var(--accent-deep); }
.pr-no { color: var(--text-faint); }
.pr-text { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }
.pr-text strong { color: var(--text-primary); font-weight: 500; }
.pr-text span { font-size: 11.5px; color: var(--text-muted); }
.pr-dim { color: var(--text-faint); }
.pricing-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pricing-cta-ghost {
  padding: 9px; border-radius: 8px; font-size: 13.5px; cursor: pointer;
  background: none; border: 1px solid var(--border); color: var(--text-secondary);
}
.pricing-cta-ghost:hover { color: var(--text-primary); }
.pricing-cta-primary {
  padding: 9px; border-radius: 8px; font-size: 13.5px; font-weight: 500; cursor: pointer;
  background: var(--accent); color: #1a1a1a; border: none;
}
.pricing-cta-primary:hover { filter: brightness(1.08); }
#show-pricing-link { color: var(--accent); text-decoration: none; font-size: 12px; }
#show-pricing-link:hover { text-decoration: underline; }

/* Right learning panel readability bump */
.right-panel {
  font-size: 14.5px;
}

.right-tab {
  font-size: 14.5px;
}

.right-tab-ai {
  min-width: 20px;
  height: 15px;
  font-size: 10px;
}

#panel-transcript .transcript-line {
  font-size: 16px;
  line-height: 1.65;
}

#panel-transcript .transcript-zh {
  font-size: 14px;
  line-height: 1.55;
}

#panel-vocab .vh-title {
  font-size: 16px;
}

#panel-vocab .vh-sub,
#panel-vocab .vh-loading {
  font-size: 13.5px;
}

#panel-vocab .vh-rescan-btn,
#panel-vocab .vh-save-btn {
  font-size: 13px;
}

#panel-vocab .vh-chip,
#panel-vocab .vh-chip-word {
  font-size: 14px;
}

#panel-vocab .vh-chip-zh {
  font-size: 12.5px;
  line-height: 1.35;
}

#panel-vocab .vh-card-word {
  font-size: 24px;
}

#panel-vocab .vh-card-pron,
#panel-vocab .vh-card-loading,
#panel-vocab .vh-def-en {
  font-size: 14px;
}

#panel-vocab .vh-card-pos {
  font-size: 12.5px;
}

#panel-vocab .vh-def-zh {
  font-size: 16px;
}

#panel-vocab .vh-example {
  font-size: 14px;
  line-height: 1.55;
}

#panel-vocab .vh-source {
  font-size: 13.5px;
  line-height: 1.55;
}

#panel-guided .guided-vlog-title {
  font-size: 17px;
}

:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-body,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-goal,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-pattern,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-quote {
  font-size: 14.5px;
  line-height: 1.6;
}

:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-translation {
  font-size: 14px;
  line-height: 1.55;
}

:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-meta {
  font-size: 13px;
}

:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-analysis-row strong,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-card--compact .guided-vlog-analysis-row strong {
  font-size: 14px;
  line-height: 1.6;
}

:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-analysis-row span,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-section-title,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-output-label,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-learning-target span,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-learning-listening span,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-learning-summary span,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-speaking-audio span {
  font-size: 13px;
}

:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-list-text,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-list-translation,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-term span,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-term em,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-speaking,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-feedback {
  font-size: 13.5px;
  line-height: 1.55;
}

:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-term strong,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-learning-target strong,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-learning-listening strong,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-learning-summary strong {
  font-size: 14px;
}

:is(#panel-listen, #panel-speak, #panel-guided) .guided-learning-target em,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-learning-target p,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-learning-listening span {
  font-size: 13.5px;
  line-height: 1.55;
}

:is(#panel-listen, #panel-speak, #panel-guided) .guided-learning-steps span {
  min-height: 24px;
  font-size: 12px;
}

:is(#panel-listen, #panel-speak, #panel-guided) .guided-speaking-metrics span,
:is(#panel-listen, #panel-speak, #panel-guided) .guided-speaking-words span {
  font-size: 12.5px;
}

:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-output {
  font-size: 14.5px;
  line-height: 1.55;
}

:is(#panel-listen, #panel-speak, #panel-guided) .guided-vlog-action {
  font-size: 14px;
}

/* Daily report */
.daily-report-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.daily-report-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.vocab-feed-health-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.vocab-feed-health-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vocab-feed-health-controls select {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 8px 10px;
  outline: none;
}

.vocab-feed-health-wrap {
  display: grid;
  gap: 16px;
}

.vfh-section {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .025);
}

.vfh-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.vfh-section-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
}

.vfh-section-head p {
  margin: 6px 0 0;
  color: var(--text-secondary);
}

.vfh-section-head span {
  color: var(--text-faint);
  font-size: 13px;
  white-space: nowrap;
}

.vfh-overview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.vfh-deploy-risk {
  border-color: rgba(91, 197, 141, .32);
}

.vfh-deploy-risk-yellow {
  border-color: rgba(255, 190, 92, .42);
  background: rgba(255, 190, 92, .05);
}

.vfh-deploy-risk-red {
  border-color: rgba(239, 98, 98, .48);
  background: rgba(239, 98, 98, .06);
}

.vfh-risk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.vfh-risk-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .035);
}

.vfh-risk-item span {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, .07);
  font-size: 12px;
}

.vfh-risk-item strong {
  font-family: var(--font-display);
  font-size: 17px;
}

.vfh-risk-item em {
  color: var(--text-faint);
  font-style: normal;
  font-size: 12px;
  line-height: 1.5;
}

.vfh-risk-item.green {
  border-color: rgba(91, 197, 141, .34);
}

.vfh-risk-item.yellow {
  border-color: rgba(255, 190, 92, .42);
}

.vfh-risk-item.red {
  border-color: rgba(239, 98, 98, .48);
}

.vfh-metric,
.vfh-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.vfh-metric {
  padding: 14px;
  display: grid;
  gap: 6px;
}

.vfh-metric span,
.vfh-card-head span,
.vfh-muted,
.vfh-table small {
  color: var(--text-secondary);
}

.vfh-metric strong {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.vfh-metric em {
  color: var(--text-faint);
  font-style: normal;
  font-size: 12px;
}

.vfh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vfh-learning-list {
  display: grid;
  gap: 0;
}

.vfh-learning-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(150px, auto);
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid var(--border-soft);
}

.vfh-learning-row:last-child {
  border-bottom: 0;
}

.vfh-learning-row span {
  color: var(--text-primary);
  font-weight: 600;
}

.vfh-learning-row strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.vfh-learning-row em {
  color: var(--text-faint);
  font-style: normal;
  font-size: 12px;
  text-align: right;
}

.vfh-card {
  padding: 16px;
}

.vfh-alert {
  display: grid;
  gap: 6px;
}

.vfh-alert strong {
  font-size: 16px;
}

.vfh-alert p,
.vfh-alert small {
  margin: 0;
}

.vfh-alert-danger {
  border-color: rgba(239, 98, 98, .48);
  background: rgba(239, 98, 98, .08);
}

.vfh-alert-danger strong {
  color: #ff9b9b;
}

.vfh-alert-danger p {
  color: var(--text-primary);
}

.vfh-alert-danger small {
  color: var(--text-secondary);
}

.vfh-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.vfh-card-head h3 {
  margin: 0;
  font-size: 18px;
  font-family: var(--font-display);
}

.vfh-recommendations {
  display: grid;
  gap: 8px;
}

.vfh-recommendations p {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.6;
}

.vfh-quality-gate {
  display: grid;
  gap: 12px;
}

.vfh-quality-green {
  border-color: rgba(91, 197, 141, .42);
  background: rgba(91, 197, 141, .08);
}

.vfh-quality-yellow,
.vfh-quality-unknown {
  border-color: rgba(255, 190, 92, .42);
  background: rgba(255, 190, 92, .08);
}

.vfh-quality-red {
  border-color: rgba(239, 98, 98, .48);
  background: rgba(239, 98, 98, .08);
}

.vfh-quality-main {
  display: grid;
  gap: 6px;
}

.vfh-quality-main strong {
  font-size: 17px;
}

.vfh-quality-main p,
.vfh-quality-rule p {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.6;
}

.vfh-quality-rules {
  display: grid;
  gap: 8px;
}

.vfh-quality-rule {
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .12);
}

.vfh-quality-rule span {
  display: block;
  margin-bottom: 4px;
  color: var(--text-faint);
  font-size: 12px;
}

.vfh-quality-rule.red {
  border-color: rgba(239, 98, 98, .42);
}

.vfh-quality-rule.yellow {
  border-color: rgba(255, 190, 92, .42);
}

.vfh-phase-list,
.vfh-breakdown {
  display: grid;
  gap: 8px;
}

.vfh-phase-row,
.vfh-breakdown div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .035);
}

.vfh-phase-row strong,
.vfh-breakdown strong {
  color: var(--accent);
}

.vfh-table-wrap {
  overflow-x: auto;
}

.vfh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.vfh-table th,
.vfh-table td {
  border-top: 1px solid var(--border-soft);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.vfh-table th {
  color: var(--text-secondary);
  font-weight: 700;
}

.vfh-table td strong,
.vfh-table td small {
  display: block;
}

.vfh-table td small {
  margin-top: 4px;
  line-height: 1.45;
}

.vfh-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 200, 92, .35);
  border-radius: 999px;
  color: var(--accent);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.vfh-word-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.vfh-word-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: rgba(255, 255, 255, .035);
  display: grid;
  gap: 4px;
}

.vfh-word-item.warning {
  border-color: rgba(255, 190, 80, .45);
  background: rgba(255, 190, 80, .08);
}

.vfh-word-item strong {
  font-size: 16px;
}

.vfh-word-item span,
.vfh-word-item em {
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
}

.vfh-word-item small {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
  word-break: break-word;
}

@media (max-width: 1100px) {
  .vfh-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vfh-word-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vfh-risk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .vocab-feed-health-header,
  .vfh-section-head,
  .vfh-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .vfh-overview,
  .vfh-risk-grid,
  .vfh-word-grid {
    grid-template-columns: 1fr;
  }

  .vfh-learning-row {
    grid-template-columns: 1fr auto;
    padding: 8px 0;
  }

  .vfh-learning-row em {
    grid-column: 1 / -1;
    text-align: left;
  }
}

.daily-report-wrap {
  display: grid;
  gap: 16px;
}

.daily-report-hero-card,
.daily-report-card,
.daily-report-metric {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.daily-report-hero-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
}

.daily-report-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.daily-report-hero-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-family: var(--font-display);
}

.daily-report-summary-lines {
  display: grid;
  gap: 6px;
}

.daily-report-summary-lines p,
.daily-report-soft {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.daily-report-video-link {
  flex-shrink: 0;
  color: #1a1a1a;
  background: var(--accent);
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 850;
}

.daily-report-training-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  border: 1px solid rgba(255, 200, 92, .32);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 200, 92, .13), rgba(94, 168, 255, .06));
  padding: 18px;
}

.daily-report-training-main h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
}

.daily-report-training-main p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.daily-report-training-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.daily-report-training-actions span {
  color: var(--text-faint);
  font-size: 13px;
}

.daily-report-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #1a1a1a;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.daily-report-training-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.daily-report-training-stats div {
  display: grid;
  align-content: center;
  min-height: 74px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius-sm);
  background: rgba(14, 17, 22, .36);
  padding: 12px;
}

.daily-report-training-stats span {
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 800;
}

.daily-report-training-stats strong {
  color: var(--text-primary);
  font-size: 30px;
  line-height: 1;
}

.daily-report-training-queue {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.daily-report-training-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius-sm);
  background: rgba(14, 17, 22, .36);
  padding: 12px;
}

.daily-report-training-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 200, 92, .18);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.daily-report-training-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.daily-report-training-item-head strong {
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.35;
}

.daily-report-training-item-head span {
  flex-shrink: 0;
  min-width: 28px;
  border: 1px solid rgba(255, 200, 92, .34);
  border-radius: var(--radius-sm);
  color: var(--accent);
  text-align: center;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 900;
}

.daily-report-training-item p {
  margin: 7px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.daily-report-training-item em {
  display: block;
  margin-top: 7px;
  color: var(--text-faint);
  font-size: 12.5px;
  font-style: normal;
  line-height: 1.45;
}

.daily-report-training-empty {
  grid-column: 1 / -1;
}

.daily-report-recovered {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.daily-report-recovered > span {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 850;
}

.daily-report-library {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(94, 168, 255, .24);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(94, 168, 255, .10), rgba(255, 200, 92, .045));
  padding: 18px;
}

.daily-report-library > p {
  margin: -4px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.daily-report-library-health {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(94, 168, 255, .20);
  border-radius: var(--radius-sm);
  background: rgba(94, 168, 255, .075);
  padding: 8px 10px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.4;
}

.daily-report-library-health.ready {
  border-color: rgba(64, 214, 143, .22);
  background: rgba(64, 214, 143, .08);
}

.daily-report-library-health strong {
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 900;
  white-space: nowrap;
}

.daily-report-library-health span {
  color: var(--text-secondary);
  text-align: right;
}

.daily-report-library-terms,
.daily-report-library-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.daily-report-library-terms b {
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 850;
}

.daily-report-library-terms span,
.daily-report-library-tags span {
  border: 1px solid rgba(94, 168, 255, .28);
  border-radius: var(--radius-sm);
  background: rgba(94, 168, 255, .09);
  color: var(--text-primary);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.daily-report-library-policy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 200, 92, .22);
  border-radius: var(--radius-sm);
  background: rgba(255, 200, 92, .08);
  padding: 9px 11px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.45;
}

.daily-report-library-policy strong {
  color: var(--accent);
  font-weight: 900;
}

.daily-report-library-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(94, 168, 255, .20);
  border-radius: var(--radius-sm);
  background: rgba(94, 168, 255, .08);
  padding: 10px 12px;
}

.daily-report-library-progress strong {
  color: var(--accent-blue, #5ea8ff);
  font-size: 13px;
}

.daily-report-library-progress span {
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.45;
}

.daily-report-recommendation-audit {
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius-sm);
  background: rgba(14, 17, 22, .28);
}

.daily-report-recommendation-audit summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
}

.daily-report-recommendation-audit summary::-webkit-details-marker {
  display: none;
}

.daily-report-recommendation-audit summary span {
  color: var(--accent-blue, #5ea8ff);
  font-size: 12px;
  font-weight: 900;
}

.daily-report-recommendation-audit summary strong {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.35;
}

.daily-report-recommendation-audit summary em {
  color: var(--text-faint);
  font-size: 12px;
  font-style: normal;
}

.daily-report-audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 10px;
}

.daily-report-audit-item {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .035);
  padding: 10px;
}

.daily-report-audit-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.daily-report-audit-item-head span {
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 900;
}

.daily-report-audit-item-head strong {
  color: var(--text-primary);
  font-size: 13.5px;
  line-height: 1.35;
}

.daily-report-audit-source {
  overflow: hidden;
  color: var(--text-faint);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-report-audit-times,
.daily-report-audit-scores,
.daily-report-audit-terms,
.daily-report-audit-feedback,
.daily-report-audit-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.daily-report-audit-times span,
.daily-report-audit-scores span,
.daily-report-audit-feedback span,
.daily-report-audit-evidence span {
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .055);
  color: var(--text-secondary);
  padding: 4px 6px;
  font-size: 11.5px;
  line-height: 1.2;
}

.daily-report-audit-evidence .ready {
  background: rgba(86, 211, 137, .10);
  color: #7fe3a8;
}

.daily-report-audit-evidence .warning {
  background: rgba(255, 139, 139, .10);
  color: #ff9a9a;
}

.daily-report-audit-scores b {
  color: var(--accent-blue, #5ea8ff);
  font-weight: 900;
}

.daily-report-audit-scores .negative b {
  color: #ff8b8b;
}

.daily-report-audit-terms span {
  border: 1px solid rgba(94, 168, 255, .22);
  border-radius: var(--radius-sm);
  background: rgba(94, 168, 255, .08);
  color: var(--text-primary);
  padding: 4px 6px;
  font-size: 11.5px;
  font-weight: 800;
}

.daily-report-audit-item p {
  margin: 0;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.45;
}

.daily-report-audit-target {
  display: grid;
  gap: 4px;
  border-left: 2px solid rgba(94, 168, 255, .34);
  padding-left: 8px;
}

.daily-report-audit-target p {
  color: var(--text-primary);
  font-weight: 750;
}

.daily-report-audit-target em {
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.daily-report-audit-target mark {
  border-radius: 4px;
  background: rgba(255, 200, 92, .22);
  color: var(--accent);
  padding: 0 3px;
}

.daily-report-library-rank {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.daily-report-library-rank span,
.daily-report-library-rank em {
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
}

.daily-report-library-rank span {
  background: rgba(94, 168, 255, .14);
  color: var(--accent-blue, #5ea8ff);
}

.daily-report-library-rank em {
  background: rgba(255, 200, 92, .12);
  color: var(--accent);
}

.daily-report-library-reason {
  margin: -2px 0 0;
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.5;
}

.daily-report-library-source {
  margin-top: -4px;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.45;
}

.daily-report-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.daily-report-library-item {
  display: grid;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius-sm);
  background: rgba(14, 17, 22, .36);
  padding: 13px;
}

.daily-report-library-item.locked {
  border-color: rgba(255, 200, 92, .18);
  background: rgba(14, 17, 22, .24);
}

.daily-report-library-item.scene-mastered {
  border-color: rgba(86, 211, 137, .20);
}

.daily-report-library-item.scene-needs-review {
  border-color: rgba(255, 200, 92, .26);
}

.daily-report-library-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.daily-report-library-item-head strong {
  display: block;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.daily-report-library-item-head span {
  color: var(--text-faint);
  font-size: 12px;
}

.daily-report-library-open {
  flex-shrink: 0;
  min-height: 32px;
  border: 1px solid rgba(94, 168, 255, .34);
  border-radius: var(--radius-sm);
  background: rgba(94, 168, 255, .10);
  color: var(--accent-blue, #5ea8ff);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.daily-report-library-open:hover {
  border-color: rgba(94, 168, 255, .58);
  background: rgba(94, 168, 255, .16);
}

.daily-report-library-open.locked {
  border-color: rgba(255, 200, 92, .32);
  background: rgba(255, 200, 92, .10);
  color: var(--accent);
}

.daily-report-library-open.locked:hover {
  border-color: rgba(255, 200, 92, .58);
  background: rgba(255, 200, 92, .16);
}

.daily-report-library-target-sentence {
  margin: 0;
  border-left: 2px solid rgba(94, 168, 255, .44);
  padding-left: 10px;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.55;
}

.daily-report-library-target-block {
  display: grid;
  gap: 5px;
}

.daily-report-library-target-translation {
  margin: 0;
  border-left: 2px solid rgba(94, 168, 255, .22);
  padding-left: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.daily-report-library-target-sentence mark {
  border-radius: 4px;
  background: rgba(255, 200, 92, .22);
  color: var(--accent);
  padding: 0 3px;
}

.daily-report-library-lock {
  margin: 0;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.5;
}

.daily-report-library-context-toggle {
  justify-self: start;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04);
  color: var(--text-secondary);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.daily-report-library-context-toggle:hover {
  border-color: rgba(255, 255, 255, .22);
  color: var(--text-primary);
}

.daily-report-library-sentences {
  display: grid;
  gap: 8px;
}

.daily-report-library-sentences div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
}

.daily-report-library-sentences em {
  color: var(--text-faint);
  font-size: 12px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.daily-report-library-sentence-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.daily-report-library-sentence-text {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.daily-report-library-sentence-translation {
  display: block;
  color: var(--text-faint);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.45;
}

.daily-report-library-sentences mark {
  border-radius: 4px;
  background: rgba(255, 200, 92, .22);
  color: var(--accent);
  padding: 0 3px;
}

.daily-report-library-sentences .target {
  border-left: 2px solid var(--accent);
  padding-left: 8px;
}

.daily-report-library-sentences .target .daily-report-library-sentence-text {
  color: var(--text-primary);
  font-weight: 750;
}

.daily-scenario-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: calc(100dvh - 138px);
}

.daily-scenario-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(94, 168, 255, .24);
  border-radius: var(--radius-sm);
  background: rgba(14, 17, 22, .58);
  padding: 10px 14px;
}

.daily-scenario-topbar div {
  display: grid;
  gap: 3px;
}

.daily-scenario-topbar span {
  color: var(--accent-blue, #5ea8ff);
  font-size: 11.5px;
  font-weight: 900;
}

.daily-scenario-topbar strong {
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.25;
}

.daily-scenario-topbar em {
  color: var(--text-faint);
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
  text-align: right;
}

.daily-scenario-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(420px, .9fr);
  gap: 18px;
  align-items: start;
  min-height: 0;
}

.daily-scenario-player-card,
.daily-scenario-context-card,
.daily-scenario-review-card,
.daily-scenario-empty-card,
.daily-scenario-context {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.daily-scenario-player-card {
  align-self: start;
  overflow: hidden;
}

.daily-scenario-video-shell {
  position: relative;
  overflow: hidden;
  background: #05070b;
  aspect-ratio: 16 / 9;
}

.daily-scenario-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #05070b;
  object-fit: contain;
}

.daily-scenario-preload-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.daily-scenario-player-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 11, .72);
  color: var(--text-secondary);
  padding: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.daily-scenario-review-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  max-height: calc(100dvh - 168px);
  overflow: auto;
}

.daily-scenario-review-card.locked {
  border-color: rgba(255, 200, 92, .24);
}

.daily-scenario-card-head {
  display: grid;
  gap: 9px;
}

.daily-scenario-card-head span {
  justify-self: start;
  border: 1px solid rgba(94, 168, 255, .28);
  border-radius: 999px;
  background: rgba(94, 168, 255, .10);
  color: var(--accent-blue, #5ea8ff);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.daily-scenario-card-head .daily-scenario-tier.core {
  border-color: rgba(255, 200, 92, .42);
  background: rgba(255, 200, 92, .14);
  color: var(--accent);
}

.daily-scenario-card-head .daily-scenario-tier.extra {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .055);
  color: var(--text-secondary);
}

.daily-scenario-card-head strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(30px, 2vw, 36px);
  line-height: 1.08;
}

.daily-scenario-target {
  display: grid;
  gap: 8px;
}

.daily-scenario-target p {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 780;
  line-height: 1.55;
}

.daily-scenario-target em {
  color: var(--text-secondary);
  font-size: 15px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.55;
}

.daily-scenario-active-sentence mark,
.daily-scenario-target mark,
.daily-scenario-context-list mark {
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-weight: 900;
}

.daily-scenario-term-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.daily-scenario-term-row span,
.daily-scenario-term-row button {
  border: 1px solid rgba(255, 200, 92, .24);
  border-radius: var(--radius-sm);
  background: rgba(255, 200, 92, .09);
  color: var(--text-primary);
  padding: 6px 9px;
  font-size: 13px;
  font-weight: 850;
}

.daily-scenario-term-row button {
  cursor: pointer;
  text-align: left;
}

.daily-scenario-note {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.daily-scenario-actions,
.daily-scenario-nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.daily-scenario-actions button,
.daily-scenario-nav-actions button,
.daily-scenario-context > button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .055);
  color: var(--text-secondary);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.daily-scenario-actions button:hover,
.daily-scenario-nav-actions button:hover,
.daily-scenario-context > button:hover {
  border-color: rgba(255, 255, 255, .24);
  color: var(--text-primary);
}

.daily-scenario-actions .daily-scenario-primary {
  border-color: rgba(255, 200, 92, .44);
  background: var(--accent);
  color: #1a1a1a;
}

.daily-scenario-nav-actions button:disabled {
  cursor: default;
  opacity: .42;
}

.daily-scenario-context-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  min-height: 0;
  max-height: calc(100dvh - 186px);
}

.daily-scenario-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.daily-scenario-panel-head span,
.daily-scenario-analysis span,
.daily-scenario-active-sentence > span,
.daily-scenario-term-cards > span {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 900;
}

.daily-scenario-panel-head strong {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.daily-scenario-panel-empty {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.daily-scenario-context-scroll {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.daily-scenario-context-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 6px 12px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .035);
  color: inherit;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.daily-scenario-context-row:hover,
.daily-scenario-context-row.active {
  border-color: rgba(255, 200, 92, .44);
  background: rgba(255, 200, 92, .10);
}

.daily-scenario-context-row span {
  grid-row: 1 / 3;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.daily-scenario-context-row p {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.48;
}

.daily-scenario-context-row em {
  color: var(--text-secondary);
  font-size: 13.5px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.45;
}

.daily-scenario-context-row:not(.target):not(.active) p {
  color: var(--text-secondary);
  font-weight: 680;
}

.daily-scenario-insight-details,
.daily-scenario-active-sentence,
.daily-scenario-analysis,
.daily-scenario-term-cards {
  display: grid;
  gap: 8px;
}

.daily-scenario-insight-details {
  gap: 14px;
}

.daily-scenario-active-sentence p {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.58;
}

.daily-scenario-active-sentence .word {
  cursor: pointer;
  border-bottom: 1px solid transparent;
  padding: 0 1px;
  transition: color .12s, border-color .12s;
}

.daily-scenario-active-sentence .word:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.daily-scenario-active-sentence mark .word {
  color: inherit;
}

.daily-scenario-analysis p {
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 680;
  line-height: 1.65;
}

.daily-scenario-active-sentence em {
  color: var(--text-secondary);
  font-size: 15px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.5;
}

.daily-scenario-analysis {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 11px;
}

.daily-scenario-term-cards {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 11px;
}

.daily-scenario-term-card {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid rgba(255, 200, 92, .20);
  border-radius: var(--radius-sm);
  background: rgba(255, 200, 92, .07);
  color: inherit;
  padding: 13px;
  text-align: left;
  cursor: pointer;
}

.daily-scenario-term-card:hover {
  border-color: rgba(255, 200, 92, .42);
  background: rgba(255, 200, 92, .11);
}

.daily-scenario-term-card strong {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 900;
}

.daily-scenario-term-card em,
.daily-scenario-term-card small {
  color: var(--text-secondary);
  font-size: 14px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.45;
}

.daily-scenario-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 210px);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.daily-scenario-strip button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 9px;
  align-items: center;
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius-sm);
  background: rgba(14, 17, 22, .52);
  color: var(--text-secondary);
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.daily-scenario-strip button.active {
  border-color: rgba(255, 200, 92, .58);
  background: rgba(255, 200, 92, .12);
}

.daily-scenario-strip button.locked {
  opacity: .72;
}

.daily-scenario-strip span {
  display: grid;
  place-items: center;
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 200, 92, .14);
  color: var(--accent);
  font-weight: 900;
}

.daily-scenario-strip strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-scenario-strip em {
  color: var(--text-faint);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.daily-scenario-context {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.daily-scenario-context > button {
  justify-self: start;
}

.daily-scenario-context-list {
  display: grid;
  gap: 9px;
}

.daily-scenario-context-list div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 5px 10px;
  border-left: 2px solid transparent;
}

.daily-scenario-context-list div.target {
  border-color: var(--accent);
  padding-left: 8px;
}

.daily-scenario-context-list span {
  grid-row: 1 / 3;
  color: var(--text-faint);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.daily-scenario-context-list p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.daily-scenario-context-list div.target p {
  color: var(--text-primary);
  font-weight: 760;
}

.daily-scenario-context-list em {
  color: var(--text-faint);
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.45;
}

.daily-scenario-context-list .daily-scenario-context-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 5px 10px;
}

.daily-scenario-context-list .daily-scenario-context-row.active,
.daily-scenario-context-list .daily-scenario-context-row.target {
  border-color: rgba(255, 200, 92, .44);
}

.daily-scenario-context-list .daily-scenario-context-row.active p,
.daily-scenario-context-list .daily-scenario-context-row.target p {
  color: var(--text-primary);
  font-weight: 820;
}

.daily-scenario-context-list .daily-scenario-context-row em {
  color: var(--text-secondary);
}

.daily-scenario-empty-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.daily-scenario-empty-card strong {
  color: var(--text-primary);
  font-size: 18px;
}

.daily-scenario-empty-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

@media (min-width: 1700px) {
  .daily-scenario-layout {
    grid-template-columns: minmax(0, 1.72fr) minmax(520px, .82fr);
  }
}

/* ===================== OSS internal video player ===================== */
.oss-player-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(4, 7, 12, .78);
  backdrop-filter: blur(10px);
}

.oss-player-panel {
  width: min(980px, 96vw);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-md);
  background: #0d1118;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .46);
}

.oss-player-head,
.oss-player-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
}

.oss-player-head {
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.oss-player-kicker {
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.oss-player-head strong {
  display: block;
  max-width: 780px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  font-size: 15px;
}

.oss-player-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06);
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
}

.oss-player-video-wrap {
  position: relative;
  min-height: 280px;
  background: #000;
}

.oss-player-video {
  display: block;
  width: 100%;
  max-height: 72vh;
  aspect-ratio: 16 / 9;
  background: #000;
}

.oss-player-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
  color: var(--text-primary);
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
}

.oss-player-scene-panel {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  background: linear-gradient(180deg, rgba(18, 25, 36, .96), rgba(13, 17, 24, .98));
  padding: 13px 16px 14px;
}

.oss-player-scene-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.oss-player-scene-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.oss-player-scene-toolbar span {
  display: block;
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 850;
}

.oss-player-scene-toolbar strong {
  display: block;
  margin-top: 2px;
  color: var(--accent);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

#oss-player-loop.active {
  border-color: rgba(255, 200, 92, .48);
  background: rgba(255, 200, 92, .14);
  color: var(--accent);
}

#oss-player-subtitle.active {
  border-color: rgba(94, 168, 255, .46);
  background: rgba(94, 168, 255, .14);
  color: var(--accent-blue, #5ea8ff);
}

.oss-player-current-sentence {
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 780;
  line-height: 1.55;
}

.oss-player-current-sentence mark {
  border-radius: 4px;
  background: rgba(255, 200, 92, .22);
  color: var(--accent);
  padding: 0 3px;
}

.oss-player-current-translation {
  display: block;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.oss-player-blind-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-right: 8px;
  border: 1px solid rgba(94, 168, 255, .28);
  border-radius: 999px;
  background: rgba(94, 168, 255, .10);
  color: var(--accent-blue, #5ea8ff);
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 900;
}

.oss-player-scene-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.oss-player-scene-terms span {
  border: 1px solid rgba(255, 200, 92, .28);
  border-radius: 999px;
  background: rgba(255, 200, 92, .10);
  color: var(--accent);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 850;
}

.oss-player-foot {
  border-top: 1px solid rgba(255, 255, 255, .10);
  color: var(--text-secondary);
  font-size: 12.5px;
}

.oss-player-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

#oss-player-understood {
  border-color: rgba(86, 211, 137, .34);
  color: #7bdc9d;
}

#oss-player-not-understood,
#oss-player-review-tomorrow {
  border-color: rgba(255, 200, 92, .30);
  color: var(--accent);
}

#oss-player-too-hard {
  border-color: rgba(255, 200, 92, .30);
  color: var(--accent);
}

#oss-player-not-relevant {
  border-color: rgba(255, 112, 112, .32);
  color: #ff8b8b;
}

#oss-player-next {
  border-color: rgba(94, 168, 255, .40);
  background: rgba(94, 168, 255, .12);
  color: var(--accent-blue, #5ea8ff);
}

@media (max-width: 640px) {
  .oss-player-overlay {
    padding: 10px;
  }

  .oss-player-head,
  .oss-player-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .oss-player-scene-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .oss-player-scene-tools {
    width: 100%;
  }

  .oss-player-head strong {
    max-width: 78vw;
  }

  .oss-player-current-sentence {
    font-size: 14.5px;
  }
}

.daily-report-coach {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 16px;
  border: 1px solid rgba(255, 200, 92, .26);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 200, 92, .10), rgba(94, 168, 255, .055));
  padding: 18px;
}

.daily-report-coach-main,
.daily-report-coach-plan {
  min-width: 0;
}

.daily-report-coach-main p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.daily-report-focus-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.daily-report-focus-item {
  border: 1px solid rgba(255, 200, 92, .22);
  border-radius: var(--radius-sm);
  background: rgba(14, 17, 22, .34);
  padding: 10px;
}

.daily-report-focus-item strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 5px;
}

.daily-report-focus-item span {
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.45;
}

.daily-report-focus-item p {
  margin: 8px 0 10px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.5;
}

.daily-report-focus-item a,
.daily-report-inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 200, 92, .32);
  border-radius: var(--radius-sm);
  color: var(--accent);
  text-decoration: none;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 850;
}

.daily-report-inline-link {
  margin-top: 9px;
}

.daily-report-focus-item a:hover,
.daily-report-inline-link:hover {
  background: rgba(255, 200, 92, .10);
  border-color: rgba(255, 200, 92, .58);
}

.daily-report-plan-steps {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.daily-report-plan-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.daily-report-plan-step em {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1a1a;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.daily-report-plan-step strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 3px;
}

.daily-report-plan-step span {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.daily-report-plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #1a1a1a;
  text-decoration: none;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 900;
}

.daily-report-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.daily-report-metric {
  padding: 16px;
  display: grid;
  gap: 6px;
}

.daily-report-metric span,
.daily-report-card-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.daily-report-metric strong {
  font-size: 26px;
  line-height: 1;
}

.daily-report-metric em {
  color: var(--text-faint);
  font-size: 12px;
  font-style: normal;
}

.daily-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 16px;
}

.daily-report-card {
  padding: 18px;
}

.daily-report-card-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.daily-report-card-head strong {
  font-size: 17px;
}

.daily-report-list {
  display: grid;
  gap: 10px;
}

.daily-report-row {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(255, 255, 255, .035);
}

.daily-report-row strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.daily-report-row span {
  display: block;
  color: var(--red);
  font-size: 13px;
}

.daily-report-row p {
  margin: 8px 0 0;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.5;
}

.daily-report-scenario-practice {
  display: grid;
  gap: 12px;
}

.daily-report-scenario-lines {
  display: grid;
  gap: 8px;
}

.daily-report-scenario-lines p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
}

.daily-report-scenario-results {
  padding-top: 2px;
}

.daily-report-scenario-focus {
  display: grid;
  gap: 8px;
}

.daily-report-scenario-focus b {
  color: var(--accent);
  font-size: 12px;
}

.daily-report-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.daily-report-chip-list span,
.daily-report-chip-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 200, 92, .28);
  border-radius: var(--radius-sm);
  background: rgba(255, 200, 92, .08);
  color: var(--text-primary);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.daily-report-chip-list a:hover {
  background: rgba(255, 200, 92, .14);
  border-color: rgba(255, 200, 92, .48);
}

.daily-report-chip-list em {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1a1a;
  font-size: 11px;
  font-style: normal;
}

.daily-report-event-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}

.daily-report-event-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border-soft);
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.daily-report-event-list strong {
  color: var(--text-primary);
}

@media (max-width: 780px) {
  .daily-report-header,
  .daily-report-hero-card {
    flex-direction: column;
    align-items: stretch;
  }

  .daily-report-metrics,
  .daily-report-grid,
  .daily-report-coach,
  .daily-report-training-console,
  .daily-scenario-layout {
    grid-template-columns: 1fr;
  }

  .daily-scenario-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .daily-scenario-topbar em {
    text-align: left;
  }

  .daily-scenario-card-head strong {
    font-size: 24px;
  }

  .daily-report-video-link {
    text-align: center;
  }
}
