/* ===================================================================
   shared.css — 李录研究网站通用设计系统
   源设计系统: video_study.html
   =================================================================== */

/* ── 1. CSS 变量 ─────────────────────────────────────────────── */
:root {
  /* 颜色系统 */
  --md-primary:       #f7fafc;
  --md-primary-rgb:   247, 250, 252;
  --md-secondary:     #c9a227;
  --md-on-secondary:  #1a1a2e;
  --md-surface:       #ffffff;
  --md-surface-variant: #f3f4f6;
  --md-background:    #ffffff;
  --md-background-dark: #f7fafc;
  --md-on-surface:    #1a202c;
  --md-on-surface-muted: #4a5568;
  --md-outline:       #d1d5db;

  /* 语义颜色 */
  --color-accent:       #c9a227;
  --color-accent-dark:  #f7fafc;
  --color-primary-blue: #e2e8f0;
  --color-bull:         #276749;
  --color-bear:         #c53030;
  --color-text-dark:    #1a202c;
  --color-text-muted:   #4a5568;
  --color-bg-light:     #ffffff;
  --color-bg-off:       #f8f9fa;

  /* 间距 */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* 字体 */
  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* 文字色 */
  --text-primary:   #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted:     #6b7280;
  --text-inverse:   #1a202c;
}

/* ── 2. 基础重置 ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-family);
  background: var(--md-background);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── 3. 通用导航栏 (#uni-navbar) ────────────────────────────── */
#uni-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: rgba(255, 255, 255, .98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 1px 0 #e2e8f0 !important;
}

/* Force light mode on all drawer and overlay elements */
#uni-drawer { background: #ffffff !important; border-left: 1px solid #e2e8f0 !important; }
#uni-overlay { background: rgba(0,0,0,.5) !important; }
#uni-drawer a.uni-link { color: #4a5568 !important; }
#uni-drawer a.uni-link:hover { color: #1a202c !important; background: #f7fafc !important; }
#uni-drawer-brand { color: #1a202c !important; }
#uni-drawer-close { color: #4a5568 !important; background: transparent !important; border: 1px solid #e2e8f0 !important; }
footer { background: #f8f9fa !important; color: #4a5568 !important; border-top: 1px solid #e2e8f0 !important; }

/* Fix muted text contrast: #6b7280 on white = 3.4:1 (fails AA). Raise to #4a5568 = 5.9:1 (passes AA) */
body, p, li, td, th { color: #2d3748 !important; }
.text-muted, .muted, .subtitle, .desc { color: #4a5568 !important; }
#uni-navbar .uni-brand {
  color: #1a202c;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
}
#uni-navbar .uni-brand span { color: #c9a227; }
#uni-navbar .uni-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
#uni-navbar .uni-link {
  color: #4a5568;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
#uni-navbar .uni-link:hover {
  color: #1a202c;
  background: rgba(201, 162, 39, .1);
}
#uni-navbar .uni-link.active { color: #c9a227; }

/* 汉堡按钮 */
#uni-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,.06);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  padding: 10px 12px;
  margin-left: 8px;
  flex-shrink: 0;
}
#uni-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #2d3748;
  border-radius: 2px;
}

/* Also apply navbar styles to .navbar class for pages using that structure */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: rgba(255, 255, 255, .98) !important;
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 1px 0 #e2e8f0;
}
.navbar .nav-brand { color: #1a202c; font-size: 1.2rem; font-weight: 600; }
.navbar .nav-brand span { color: #c9a227; }
.navbar .nav-links { display: flex; align-items: center; gap: 2px; }
.navbar .nav-link { color: #4a5568; text-decoration: none; padding: 8px 14px; border-radius: 6px; font-size: .875rem; font-weight: 500; transition: background .2s, color .2s; white-space: nowrap; }
.navbar .nav-link:hover { color: #1a202c; background: rgba(201, 162, 39, .1); }
.navbar .nav-link.active { color: #c9a227; }
.navbar .back-link { display: none !important; }

@media (max-width: 900px) {
  .navbar .nav-links { display: none; }
  #uni-hamburger, .navbar .uni-hamburger { display: flex; }
  .navbar .uni-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,.06);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    padding: 10px 12px;
    flex-shrink: 0;
  }
  .navbar .uni-hamburger span { display: block; width: 100%; height: 2px; background: #2d3748; border-radius: 2px; }
}

/* 遮罩层 */
#uni-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s;
}
#uni-overlay.open { opacity: 1; visibility: visible; }

/* 抽屉导航 */
#uni-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  background: #0a1628;
  z-index: 10001;
  transform: translateX(100%);
  transition: transform .3s;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#uni-drawer.open { transform: translateX(0); }
#uni-drawer a.uni-link {
  color: #e0e6eb;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 1rem;
  display: block;
}
#uni-drawer a.uni-link:hover {
  color: #fff;
  background: rgba(201, 162, 39, .15);
}
#uni-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
#uni-drawer-brand { color: #1a202c; font-size: 1.1rem; font-weight: 600; }
#uni-drawer-brand span { color: #c9a227; }
#uni-drawer-close {
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  color: #4a5568;
  font-size: 18px;
}
#uni-drawer-theme {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
#uni-body { padding-top: 56px; }

/* ── 3b. 资料库下拉菜单 (5-R2-1) ─────────────────────────── */
.uni-dropdown { position: relative; }
.uni-dropdown > .uni-link {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.uni-dropdown > .uni-link::after {
  content: '▼';
  font-size: .55rem;
  margin-left: 3px;
  opacity: .65;
}
.uni-dropdown:hover > .uni-link {
  color: #fff;
  background: rgba(201, 162, 39, .15);
}
.uni-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  background: #0f2d5a;
  border: 1px solid rgba(201, 162, 39, .25);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  z-index: 10003;
}
.uni-dropdown:hover > .uni-dropdown-menu { display: block; }
.uni-dropdown-menu a {
  display: block;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: .82rem;
  transition: background .15s, color .15s;
}
.uni-dropdown-menu a:hover {
  color: #fff;
  background: rgba(201, 162, 39, .2);
}
/* Light mode dropdown */
body .uni-dropdown-menu { background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
body .uni-dropdown-menu a { color: rgba(26,32,44,.7); }
body .uni-dropdown-menu a:hover { color: #1a202c; background: rgba(201,162,39,.1); }

/* 响应式: 移动端 */
@media (max-width: 900px) {
  #uni-navbar .uni-links { display: none; }
  #uni-hamburger { display: flex !important; visibility: visible !important; opacity: 1 !important; }
  .uni-dropdown { display: none; }  /* 移动端用 hamburger drawer */
  #uni-body { min-height: 100vh; }
  body { min-height: 100vh; }
}

/* ── 4. 通用 Footer ─────────────────────────────────────────── */
footer {
  padding: 16px 24px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  font-size: .75rem;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
footer a { color: #c9a227; text-decoration: none; }

/* ── 5. 通用工具类 ──────────────────────────────────────────── */
.main-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 24px 60px;
}

.back-bar {
  display: none !important;
}
.back-bar a {
  color: #c9a227;
  text-decoration: none;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.back-bar a:hover { text-decoration: underline; }

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 8px;
  line-height: 1.3;
}
.page-subtitle {
  color: #4a5568;
  font-size: 1rem;
  margin-bottom: 32px;
}

/* ── 6. 通用内容组件 ────────────────────────────────────────── */
.toc-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 40px;
}
.toc-card h2 { font-size: 1.1rem; color: #0a1628; margin-bottom: 12px; }
.toc-card h3 { font-size: 1rem; color: #0a1628; margin-bottom: 12px; }

.video-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  gap: 0;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.video-card + .video-card { margin-top: 16px; }

.video-thumb {
  width: 160px;
  min-height: 120px;
  background: linear-gradient(135deg, #0a1628, #1e3a6e);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.video-thumb .play-icon { font-size: 2.5rem; color: #c9a227; opacity: .9; }

.video-body { padding: 16px; flex: 1; }
.video-body h3 { font-size: 1rem; color: #0a1628; margin-bottom: 6px; }
.video-body p  { font-size: .85rem; color: #4a5568; margin-bottom: 8px; }
.video-body .meta { display: flex; gap: 12px; font-size: .8rem; color: #9ca3af; }
.video-body .meta span { display: flex; align-items: center; gap: 4px; }
.video-body a { color: #c9a227; text-decoration: none; font-size: .85rem; font-weight: 600; }
.video-body a:hover { text-decoration: underline; }

/* 通用面板 */
.insight-card {
  background: #fff;
  border: 2px solid #c9a227;
  border-radius: 14px;
  padding: 28px;
  margin: 30px 0;
}
.insight-card h4 { color: #c9a227; margin-bottom: 14px; font-size: 1rem; }

.highlight {
  background: linear-gradient(135deg, #fff8e1, #fff);
  border: 1px solid #ffe082;
  border-radius: 10px;
  padding: 20px 25px;
  margin: 20px 0;
}
.highlight h4 { color: #b8860b; margin-bottom: 10px; }

.quote-box {
  background: #faf8f0;
  border-left: 5px solid #c9a227;
  padding: 22px 28px;
  margin: 25px 0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #555;
}
.quote-box cite {
  display: block;
  margin-top: 10px;
  font-size: .85rem;
  color: #888;
  font-style: normal;
}

.lesson-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 18px;
  border-left: 4px solid #c9a227;
}
.lesson-card h4 { color: #1a365d; margin-bottom: 10px; font-size: 1rem; }
.lesson-card p  { color: #555; font-size: .9rem; margin-bottom: 8px; }
.lesson-card ul { margin: 8px 0 0 18px; }
.lesson-card li { color: #555; font-size: .9rem; margin-bottom: 6px; }

/* 双栏面板 */
.dual-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 25px 0; }
.panel { padding: 22px; border-radius: 12px; }
.panel-bull { background: #f0f9f4; border: 1px solid #38a169; }
.panel-bull h4 { color: #276749; margin-bottom: 10px; }
.panel-bear { background: #fff5f5; border: 1px solid #c53030; }
.panel-bear h4 { color: #c53030; margin-bottom: 10px; }
.panel p, .panel li { color: #444; font-size: .9rem; }
.panel ul { margin: 8px 0 0 18px; }
.panel li { margin-bottom: 6px; }

/* 数字统计 */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 25px 0; text-align: center; }
.num-box { background: #f8f9fa; border-radius: 10px; padding: 20px 10px; }
.num-box .big   { font-size: 1.8rem; font-weight: 700; color: #c9a227; }
.num-box .label { font-size: .8rem; color: #888; margin-top: 5px; }

/* 时间线 */
.timeline { position: relative; padding-left: 30px; margin: 25px 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 5px; bottom: 5px;
  width: 3px;
  background: linear-gradient(to bottom, #c9a227, #e8d5a3);
}
.tl-item { position: relative; margin-bottom: 28px; padding-left: 20px; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -34px; top: 7px;
  width: 12px; height: 12px;
  background: #c9a227;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #c9a227;
}
.tl-date   { font-weight: 700; color: #c9a227; font-size: .85rem; margin-bottom: 4px; }
.tl-title   { font-weight: 600; color: #1a365d; margin-bottom: 4px; }
.tl-content { color: #555; font-size: .9rem; }

/* 来源注释 */
.source-note {
  font-size: .78rem;
  color: #999;
  border-top: 1px solid #eee;
  padding-top: 15px;
  margin-top: 30px;
}

/* 通用 Section */
.section { margin-bottom: 55px; }

/* 移动端响应式 */
@media (max-width: 600px) {
  .video-card { flex-direction: column; }
  .video-thumb { width: 100%; min-height: 80px; }
  .page-title { font-size: 1.5rem; }
  .nums { grid-template-columns: 1fr 1fr; }
  .dual-panel { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .page { padding: 100px 20px 40px; }
  .lead { padding: 25px 22px; }
}

/* ── 7. 暗色模式 (prefers-color-scheme: dark) ───────────────── */
/* ── 7. 亮色模式 (默认) ────────────────────────────────────────── */
body { background: #ffffff !important; color: #1a202c !important; }

#uni-navbar  { background: #ffffff; border-bottom: 1px solid #e2e8f0; box-shadow: none; }
#uni-drawer  { background: #ffffff; }
#uni-drawer a.uni-link { color: #4a5568; }
#uni-drawer a.uni-link:hover { color: #2d3748; background: #f7fafc; }

.back-bar a  { color: #c9a227; }
.page-title  { color: #1a202c; }
.page-subtitle { color: #718096; }

.toc-card {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
}
.toc-card h2,
.toc-card h3 { color: #1a202c; }
.toc-list .toc-label { color: #2d3748; }
.toc-list .toc-time  { color: #c9a227; }

.video-card {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
}
.video-body h3 { color: #1a202c; }
.video-body p  { color: #718096; }

.insight-card {
  background: #fffef5;
  border: 1px solid #f0e5a0;
}
.insight-card h4 { color: #92700c; }

.lesson-card {
  background: #fffef5;
  border: 1px solid #f0e5a0;
}
.lesson-card h4 { color: #1a202c; }
.lesson-card p,
.lesson-card li { color: #718096; }

.highlight {
  background: #fffef5;
  border: 1px solid #f0e5a0;
}

.quote-box {
  background: #fffef5;
  border: 1px solid #f0e5a0;
  color: #2d3748;
}
.quote-box cite { color: #a0aec0; }

.dual-panel .panel-bull { background: #f0fff4; border: 1px solid #c6f6d5; }
.dual-panel .panel-bear { background: #fff5f5; border: 1px solid #fed7d7; }

.nums .num-box { background: #f8f9fa; border: 1px solid #e2e8f0; }

footer {
  background: #f8f9fa;
  color: #a0aec0;
  border-top: 1px solid #e2e8f0;
}

.source-note { color: #a0aec0; border-color: #e2e8f0; }

/* Light mode dropdown */
body .uni-dropdown-menu { background: #ffffff; border: 1px solid #e2e8f0; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
body .uni-dropdown-menu a { color: #4a5568; }
body .uni-dropdown-menu a:hover { color: #1a202c; background: #f7fafc; }

/* ── Dark mode overrides (applied via body.dark-mode) ──────────── */
body.dark-mode #uni-navbar  { background: #0d1b2a; border-bottom: 1px solid #1e3a5f; }
body.dark-mode #uni-drawer  { background: #0d1b2a; }
body.dark-mode #uni-drawer a.uni-link { color: #94a3b8; }
body.dark-mode #uni-drawer a.uni-link:hover { color: #e2e8f0; background: #1e3a5f; }
body.dark-mode .uni-dropdown-menu { background: #0d1b2a; border-color: #1e3a5f; }
body.dark-mode .uni-dropdown-menu a { color: #94a3b8; }
body.dark-mode .uni-dropdown-menu a:hover { color: #e2e8f0; background: #1e3a5f; }
body.dark-mode .page-title  { color: #e2e8f0; }
body.dark-mode .page-subtitle { color: #94a3b8; }
body.dark-mode .back-bar a  { color: #c9a227; }
body.dark-mode .toc-card { background: #0f2744; border-color: #1e3a5f; }
body.dark-mode .toc-card h2,
body.dark-mode .toc-card h3 { color: #e2e8f0; }
body.dark-mode .toc-list .toc-label { color: #cbd5e1; }
body.dark-mode .toc-list .toc-time  { color: #c9a227; }
body.dark-mode .video-card { background: #0f2744; border-color: #1e3a5f; }
body.dark-mode .video-body h3 { color: #e2e8f0; }
body.dark-mode .video-body p  { color: #94a3b8; }
body.dark-mode .insight-card { background: #1a2a1a; border-color: #2d4a2d; }
body.dark-mode .insight-card h4 { color: #c9a227; }
body.dark-mode .lesson-card { background: #1a2a1a; border-color: #2d4a2d; }
body.dark-mode .lesson-card h4 { color: #e2e8f0; }
body.dark-mode .lesson-card p,
body.dark-mode .lesson-card li { color: #94a3b8; }
body.dark-mode .highlight { background: #1a2a1a; border-color: #2d4a2d; }
body.dark-mode .quote-box { background: #1a2a1a; border-color: #2d4a2d; color: #cbd5e1; }
body.dark-mode .quote-box cite { color: #64748b; }
body.dark-mode .dual-panel .panel-bull { background: #0f2a1a; border-color: #1e4a2d; }

/* Hero section dark mode — overrides inline styles from index.html */
body.dark-mode .hero-section { background: linear-gradient(135deg,#0d1b2a,#1e3a5f) !important; }
body.dark-mode .hero-section h1 { color: #e2e8f0 !important; }
body.dark-mode .hero-section .hero-subtitle { color: #94a3b8 !important; }
body.dark-mode .hero-section .hero-cta-outline { border-color: #c9a227 !important; color: #c9a227 !important; }


/* Dark mode: readable text on dark backgrounds */
body.dark-mode body, body.dark-mode p, body.dark-mode li, body.dark-mode td, body.dark-mode th,
body.dark-mode .page, body.dark-mode .subtitle, body.dark-mode .tl-content,
body.dark-mode .conf-note, body.dark-mode .source-note, body.dark-mode .doc-desc { color: #c8d6e8 !important; }

body.dark-mode h2 { color: #e2e8f0 !important; }
body.dark-mode h3 { color: #c9a227 !important; }
body.dark-mode h4 { color: #ffd700 !important; }
body.dark-mode .meta-item { background: #1a2a3a !important; color: #a0aec0 !important; }
body.dark-mode .footer { background: #0a1628 !important; color: #a0aec0 !important; }
body.dark-mode .page { background: #0d1b2a !important; }
body.dark-mode .lead { background: linear-gradient(135deg,#1a2a3a,#0d1e30) !important; }
body.dark-mode .lead h2 { color: #ffd700 !important; }
body.dark-mode .lead p { color: #e2e8f0 !important; }
body.dark-mode .insight-card { background: #0d1b2a !important; border-color: #ffd700 !important; }
body.dark-mode .insight-card h4 { color: #ffd700 !important; }
body.dark-mode .insight-card p { color: #e2e8f0 !important; }
body.dark-mode .lesson-card { background: #0d1b2a !important; }
body.dark-mode .lesson-card h4 { color: #ffd700 !important; }
body.dark-mode .lesson-card p, body.dark-mode .lesson-card li { color: #c8d6e8 !important; }
body.dark-mode .highlight { background: #0d1b2a !important; border-color: #ffd700 !important; }
body.dark-mode .highlight h4 { color: #ffd700 !important; }
body.dark-mode .highlight p, body.dark-mode .highlight li { color: #e2e8f0 !important; }
body.dark-mode .toc { background: #0d1b2a !important; border-color: #2a3a4a !important; }
body.dark-mode .toc h3 { color: #ffd700 !important; }
body.dark-mode .toc ol { color: #c8d6e8 !important; }
body.dark-mode .toc a { color: #ffd700 !important; }
body.dark-mode .num-box { background: #0d1b2a !important; }
body.dark-mode .quote-box { background: #0d1b2a !important; color: #e2e8f0 !important; }
body.dark-mode .back-link { background: rgba(201,162,39,0.15) !important; color: #ffd700 !important; }
body.dark-mode td { color: #c8d6e8 !important; border-bottom-color: #2a3a4a !important; }
body.dark-mode .doc-title { color: #e2e8f0 !important; }

/* ── TTS 朗读按钮 ───────────────────────────────────────────── */
.tts-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid #c9a227;
  background: rgba(201,162,39,0.12);
  color: #c9a227;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
}
.tts-btn:hover { background: rgba(201,162,39,0.25); transform: translateY(-1px); }
.tts-btn:active { transform: translateY(0); }
.tts-btn.tts-playing { background: rgba(201,162,39,0.25); border-color: #f0c040; color: #f0c040; }
.tts-btn.tts-paused  { background: rgba(100,180,100,0.15); border-color: #6ab86a; color: #8fd88f; }
.tts-btn.tts-done     { background: rgba(80,160,80,0.12); border-color: #6ab86a; color: #6ab86a; cursor: default; }

body.dark-mode .tts-btn {
  border-color: #c9a227;
  background: rgba(201,162,39,0.15);
  color: #c9a227;
}
body.dark-mode .tts-btn:hover { background: rgba(201,162,39,0.3); }
body.dark-mode .tts-btn.tts-playing { background: rgba(201,162,39,0.3); border-color: #f0c040; color: #f0c040; }
