:root {
  --bg: #F7F6F2;
  --surface: #FDFDFB;
  --surface-muted: #EFECE4;
  --surface-elevated: rgba(253, 253, 251, 0.94);
  --border: #E6E1D6;
  --text: #1A2220;
  --text-secondary: #5C6561;
  --text-muted: #7F8884;
  --teal: #1E6B63;
  --teal-dark: #15514B;
  --teal-soft: #E8F2F0;
  --teal-highlight: rgba(30, 107, 99, 0.13);
  --gold: #C58B32;
  --gold-text: #7D520A;
  --gold-soft: #F6EFE0;
  --gold-border: rgba(197, 139, 50, 0.28);
  --shadow-sm: 0 3px 10px rgba(26, 36, 33, 0.04);
  --shadow-md: 0 10px 28px rgba(26, 36, 33, 0.10);
  --shadow-sheet: 0 -10px 36px rgba(20, 30, 27, 0.14);
  --radius-card: 18px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Noto Serif", serif;
}

[data-theme="dark"] {
  --bg: #171A19;
  --surface: #212624;
  --surface-muted: #29302E;
  --surface-elevated: rgba(33, 38, 36, 0.95);
  --border: #313936;
  --text: #EDEAE2;
  --text-secondary: #A6B2AE;
  --text-muted: #7E8C87;
  --teal: #4FA89C;
  --teal-dark: #3D8A80;
  --teal-soft: rgba(79, 168, 156, 0.16);
  --teal-highlight: rgba(79, 168, 156, 0.20);
  --gold: #D9A852;
  --gold-text: #F0C778;
  --gold-soft: rgba(217, 168, 82, 0.14);
  --gold-border: rgba(217, 168, 82, 0.28);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.36);
  --shadow-sheet: 0 -12px 38px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

.app-shell {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 148px;
  position: relative;
}

/* ==================== TOP HEADER ==================== */
.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 10px 18px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 20;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex-shrink: 0;
  box-shadow: 0 5px 14px rgba(243, 112, 33, 0.28);
}

.brand-title-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-cn {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand-en {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--teal);
}

.brand-greeting {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.circle-btn:active {
  transform: scale(0.94);
}

/* ==================== CHANNEL TABS ==================== */
.channel-tabs-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.channel-tabs-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--bg) 90%);
  pointer-events: none;
}

.channel-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scroll-snap-type: x proximity;
  padding: 6px 28px 12px 18px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.channel-tabs.dragging {
  cursor: grabbing;
}

.channel-tabs::-webkit-scrollbar {
  display: none;
}

.channel-pill {
  flex-shrink: 0;
  scroll-snap-align: start;
  border: 1px solid transparent;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.channel-pill.active {
  background: var(--teal);
  color: #FDFDFB;
  box-shadow: 0 4px 12px rgba(30, 107, 99, 0.22);
}

.channel-pill .gold-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.channel-pill.active .gold-dot {
  background: #F4D38B;
}

/* ==================== NOTICE BANNER ==================== */
.notice-banner {
  margin: 0 18px 14px 18px;
  padding: 10px 14px;
  border-radius: 13px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold-text);
  font-size: 12.2px;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

/* ==================== ARTICLE CARDS ==================== */
.feed-list {
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 17px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.16s ease;
}

.article-card:active {
  transform: scale(0.99);
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.card-source {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--teal);
}

.card-source.accent-gold {
  color: var(--gold);
}

.audio-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  flex-shrink: 0;
}

.audio-pill.gold {
  background: var(--gold-soft);
  color: var(--gold-text);
}

.card-title-en {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.36;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.card-title-zh {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 13px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.term-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.term-chip {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-weight: 500;
}

.play-fab {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--teal);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(30, 107, 99, 0.28);
}

/* ==================== READER VIEW ==================== */
.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

.reader-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.back-btn {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  padding: 4px 8px 4px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.mode-seg {
  display: inline-flex;
  background: var(--surface-muted);
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
}

.mode-seg button {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.mode-seg button.active {
  background: var(--surface);
  color: var(--teal);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.speed-btn {
  border: none;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.reader-body {
  padding: 18px 20px 30px 20px;
}

.reader-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
}

.reader-title-en {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.34;
  font-weight: 700;
  margin-bottom: 8px;
}

.reader-title-zh {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.takeaway-card {
  background: var(--teal-soft);
  border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
  margin-bottom: 20px;
}

.takeaway-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 4px;
}

.takeaway-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

.reader-audio-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 22px;
}

.reader-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--teal);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.reader-audio-hint {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.sentence-block {
  padding: 12px 10px;
  margin: 0 -10px 10px -10px;
  border-radius: 14px;
  border-bottom: 1px dashed var(--border);
  transition: background 0.22s ease;
}

.sentence-block.active-sent {
  background: var(--teal-highlight);
}

.sent-en {
  font-family: var(--font-serif);
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--text);
  margin-bottom: 8px;
}

.sent-play-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--teal);
  font-size: 9px;
  margin-right: 6px;
  vertical-align: 2px;
  cursor: pointer;
}

.word-tok {
  cursor: pointer;
  border-radius: 4px;
  padding: 1px 1px;
  transition: background 0.15s ease;
}

.word-tok.med-term {
  border-bottom: 1.5px dotted var(--gold);
  color: var(--text);
}

.word-tok.selected-word {
  background: rgba(197, 139, 50, 0.28);
  color: var(--gold-text);
  border-bottom: 2px solid var(--gold);
  padding: 1px 4px;
  font-weight: 700;
}

.sent-zh {
  font-size: 13.8px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.reading-mode-en .sent-zh {
  display: none;
}

.reading-mode-blur .sent-zh {
  filter: blur(5px);
  user-select: none;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.reading-mode-blur .sent-zh.revealed {
  filter: none;
}

.source-link-box {
  margin-top: 22px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.source-link-box a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

/* ==================== COMMUTE FULL AUDIO VIEW ==================== */
.commute-wrap {
  padding: 16px 20px 24px 20px;
}

.commute-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.commute-title-top {
  font-size: 16px;
  font-weight: 700;
}

.alive-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
}

.alive-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.cover-box {
  width: min(260px, 70vw);
  height: min(260px, 70vw);
  margin: 0 auto 22px auto;
  border-radius: 28px;
  background: linear-gradient(145deg, #1B3B36 0%, #142624 100%);
  position: relative;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 44px rgba(20, 34, 31, 0.25);
  color: #F4F1EA;
}

.cover-tag {
  font-size: 10.5px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #DFB262;
  position: relative;
  z-index: 2;
}

.cover-bottom {
  position: relative;
  z-index: 2;
}

.cover-cn {
  font-size: 16px;
  font-weight: 700;
}

.cover-en {
  font-family: var(--font-serif);
  font-size: 12px;
  color: #A2C0BB;
  margin-top: 2px;
}

.player-track-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  line-height: 1.38;
  margin-bottom: 6px;
}

.player-track-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 18px;
}

.live-caption-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 20px;
  min-height: 92px;
}

.live-caption-en {
  font-family: var(--font-serif);
  font-size: 14.2px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 6px;
}

.live-caption-zh {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.scrubber-area {
  margin-bottom: 18px;
}

.scrubber-range {
  width: 100%;
  accent-color: var(--teal);
  height: 5px;
  cursor: pointer;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.player-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px 20px 8px;
}

.ctrl-text-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.ctrl-skip-btn {
  border: none;
  background: transparent;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}

.ctrl-main-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(30, 107, 99, 0.30);
}

.lock-status-bar {
  padding: 11px 14px;
  border-radius: 13px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold-text);
  font-size: 12px;
  text-align: center;
  margin-bottom: 18px;
}

.queue-list-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  cursor: pointer;
}

.queue-item.current {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.queue-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.queue-item-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==================== VOCAB VIEW ==================== */
.vocab-wrap {
  padding: 16px 18px;
}

.vocab-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.vocab-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.vocab-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.vocab-word {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}

.vocab-ipa {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-left: 8px;
}

.vocab-meaning {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 10px;
}

.vocab-example {
  background: var(--surface-muted);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.2px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.vocab-example .ex-en {
  font-family: var(--font-serif);
  color: var(--text);
  margin-bottom: 4px;
}

.vocab-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.small-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.small-btn.primary {
  background: var(--teal-soft);
  color: var(--teal);
  border-color: transparent;
}

/* ==================== DICTIONARY BOTTOM SHEET ==================== */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 21, 0.35);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.dict-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 105%);
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border-radius: 26px 26px 0 0;
  padding: 12px 22px 26px 22px;
  box-shadow: var(--shadow-sheet);
  border-top: 1px solid var(--border);
  z-index: 70;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.dict-sheet.open {
  transform: translate(-50%, 0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: var(--border);
  margin: 0 auto 14px auto;
}

.dict-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dict-word-title {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
}

.dict-word-ipa {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.dict-speak-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--teal-soft);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ctx-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gold);
  color: #FFFDF8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 11px;
}

.dict-meaning {
  font-size: 14px;
  line-height: 1.62;
  color: var(--text);
  margin-bottom: 8px;
}

.dict-general {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.primary-cta {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #FDFDFB;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(30, 107, 99, 0.25);
}

.primary-cta.saved {
  background: var(--surface-muted);
  color: var(--teal);
  box-shadow: none;
}

/* ==================== FLOATING MINI AUDIO BAR & BOTTOM NAV ==================== */
.floating-mini-player {
  position: fixed;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 492px;
  background: var(--surface-elevated);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 9px 12px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 11px;
  z-index: 40;
}

.floating-mini-player.hidden {
  display: none;
}

.mini-art {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F77E2E, #F37021 55%, #DF5B12);
  color: #FFFDF9;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(243, 112, 33, 0.28);
}

/* ==================== PLAY LANGUAGE PICKER SHEET ==================== */
.lang-sheet-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.lang-sheet-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lang-opt-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.lang-opt-btn:active {
  transform: scale(0.985);
}

.lang-opt-btn.primary {
  background: var(--teal-soft);
  border-color: rgba(30, 107, 99, 0.28);
}

.lang-opt-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--teal);
  color: #FFFDF9;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lang-opt-icon.zh {
  background: linear-gradient(135deg, #F77E2E, #F37021);
}

.lang-opt-text {
  flex: 1;
  min-width: 0;
}

.lang-opt-main {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.lang-opt-desc {
  font-size: 11.8px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.lang-opt-arrow {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.lang-opt-btn.compact {
  justify-content: center;
  padding: 11px 14px;
  font-size: 12.8px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
}

.mini-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.mini-title {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

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

.mini-btns button {
  border: none;
  background: transparent;
  color: var(--teal);
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  height: 60px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 45;
}

.nav-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 18px;
}

.nav-btn.active {
  color: var(--teal);
}

.empty-state {
  text-align: center;
  padding: 44px 20px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  left: 50%;
  top: 22px;
  transform: translate(-50%, -18px);
  background: #1A2421;
  color: #FDFDFB;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: all 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
