html.home-recommend-locked,
body.home-recommend-open {
  overflow: hidden;
}

.home-recommend-overlay {
  position: fixed;
  z-index: 1200;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  color: #f7fafc;
  background: #0d151d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.home-recommend-overlay[hidden] {
  display: none !important;
}

.hr-atmosphere {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(35, 129, 120, 0.16), transparent 42%),
    linear-gradient(302deg, rgba(183, 126, 50, 0.12), transparent 38%),
    linear-gradient(180deg, #101a24 0%, #090f15 100%);
}

.hr-topbar {
  position: absolute;
  z-index: 8;
  top: 12px;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: 36px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: transparent;
  border-bottom: 0;
  pointer-events: none;
}

.hr-topbar > * {
  pointer-events: auto;
}

.hr-topbar > * + * {
  margin-left: 12px;
}

.hr-refresh-spinner {
  width: 16px;
  height: 16px;
  margin: 0;
  border-width: 2px;
}

.hr-position {
  position: fixed;
  z-index: 7;
  bottom: 78px;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  left: 16px;
  color: rgba(217, 228, 233, 0.64);
  font-size: 10px;
  white-space: nowrap;
  text-shadow: 0 1px 4px #0009;
  pointer-events: none;
}

.hr-status {
  position: absolute;
  z-index: 7;
  bottom: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  right: auto;
  left: 50%;
  width: calc(100% - 40px);
  max-width: 1000px;
  margin: 0;
  color: #a8c8d6;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.hr-bottom-nav {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  min-height: 60px;
  height: 60px;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  max-width: none;
  margin: 0 auto;
  padding: 6px 4px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  color: #eef3f9;
  background: #0a1019f5;
  border-top: 1px solid #ffffff20;
  box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.04);
}

.hr-bottom-button {
  display: inline-flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  color: #eef3f9;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  line-height: 15px;
  text-align: center;
  text-decoration: none;
}

.hr-bottom-button + .hr-bottom-button {
  margin-left: 0;
}

.hr-bottom-button:hover:not(:disabled) {
  color: #ffffff;
  background: transparent;
}

.hr-bottom-button:disabled {
  opacity: 0.38;
  cursor: default;
}

.hr-bottom-button svg {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto 3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hr-side-actions {
  position: fixed;
  z-index: 9;
  right: 10px;
  bottom: 156px;
  bottom: calc(156px + env(safe-area-inset-bottom, 0px));
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hr-side-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin-top: 8px;
  padding: 9px;
  color: #ffffff;
  background: #0a10194d;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
  text-shadow: 0 1px 5px #000;
}

.hr-side-button:hover:not(:disabled) {
  color: #d7f1eb;
  border-color: rgba(215, 241, 235, 0.5);
}

.hr-side-button:disabled {
  opacity: 0.4;
  cursor: wait;
}

.hr-side-button[hidden],
.hr-settings-menu[hidden] {
  display: none;
}

.hr-settings-menu {
  position: fixed;
  z-index: 11;
  right: 82px;
  bottom: 170px;
  bottom: calc(170px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100vw - 100px);
  padding: 6px;
  border: 1px solid #ffffff20;
  border-radius: 10px;
  background: #1d2b35;
  box-shadow: 0 15px 40px #0006;
}

.hr-settings-menu button {
  display: block;
  width: 100%;
  padding: 12px 18px;
  border: 0;
  background: none;
  text-align: left;
  color: #d4dfe3;
  font-size: 13px;
  cursor: pointer;
}

.hr-search-panel[hidden] {
  display: none;
}

.hr-search-panel {
  position: fixed;
  z-index: 12;
  top: 100px;
  top: calc(100px + env(safe-area-inset-top, 0px));
  left: 50%;
  width: calc(100% - 28px);
  max-width: 520px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: #192631;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  color: #e8f0f3;
  transform: translateX(-50%);
}

.hr-search-row {
  display: flex;
  align-items: center;
}

.hr-search-row input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #657d8a;
  border-radius: 7px;
  outline: none;
  background: #253642;
  color: #fff;
  font-size: 15px;
}

.hr-search-row input:focus {
  border-color: #90d1c8;
}

.hr-search-row button {
  height: 40px;
  margin-left: 7px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: #37685f;
  color: #fff;
  cursor: pointer;
}

.hr-search-row [data-hr-search-close] {
  padding: 0 9px;
  background: #354650;
  font-size: 21px;
}

.hr-search-history {
  margin-top: 13px;
}

.hr-search-history strong {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #b5c8d0;
}

.hr-search-history-item {
  display: inline-flex;
  align-items: center;
  margin: 0 7px 7px 0;
  border-radius: 16px;
  background: #2c414b;
}

.hr-search-history-item button {
  min-height: 29px;
  padding: 3px 8px;
  border: 0;
  background: transparent;
  color: #e8f0f3;
  cursor: pointer;
}

.hr-search-history-item [data-hr-history-delete] {
  padding-left: 2px;
  color: #b8c8ce;
}

@media (min-width: 820px) {
  .hr-side-actions {
    right: calc((100vw - 820px) / 2 + 10px);
  }

  .hr-settings-menu {
    right: calc((100vw - 820px) / 2 + 82px);
  }
}

@media (max-height: 680px) {
  .hr-side-actions {
    bottom: 130px;
    bottom: calc(130px + env(safe-area-inset-bottom, 0px));
  }
  .hr-settings-menu {
    bottom: 144px;
    bottom: calc(144px + env(safe-area-inset-bottom, 0px));
  }
}

.hr-side-button.active {
  color: #ffd166;
}

.hr-side-button.active svg {
  fill: currentColor;
}

.hr-side-button svg {
  width: 24px;
  height: 24px;
  fill: #ffffff10;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 5px #0007);
}

#hr-settings {
  color: #b8c4ce;
}

#hr-settings svg {
  width: 22px;
  height: 22px;
}

.hr-chapter-panel {
  position: absolute;
  z-index: 12;
  top: 96px;
  top: calc(96px + env(safe-area-inset-top, 0px));
  right: 14px;
  bottom: 72px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  width: 520px;
  padding: 16px 16px 34px;
  overflow-y: auto;
  color: #dbe5e9;
  background: rgba(17, 27, 35, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.hr-chapter-panel[hidden] {
  display: none;
}

.hr-chapter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hr-chapter-panel-head strong {
  color: #ffffff;
  font-size: 14px;
}

.hr-chapter-panel-head button {
  width: 30px;
  height: 30px;
  padding: 0;
  color: #9eb3bd;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.hr-chapter-panel h3 {
  margin: 15px 0 5px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.4;
}

.hr-chapter-panel [data-hr-chapter-title] {
  margin-top: 32px;
  color: #71858f;
}

.hr-chapter-panel [data-hr-chapter-meta] {
  margin: 0;
  color: #9eb3bd;
  font-size: 11px;
}

.hr-chapter-tools-menu {
  position: fixed;
  z-index: 31;
  right: 18px;
  bottom: 92px;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  min-width: 170px;
  padding: 5px;
  background: #ffffff;
  border: 1px solid #cfd8e3;
  border-radius: 7px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .22);
}

.hr-chapter-tools-menu[hidden] {
  display: none;
}

.hr-chapter-tools-menu button {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  color: #344054;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}

.hr-chapter-tools-menu button:hover {
  color: #075985;
  background: #eff8ff;
}

.hr-chapter-voice-options {
  max-height: 220px;
  margin-top: 4px;
  padding-top: 4px;
  overflow-y: auto;
  border-top: 1px solid #e5eaf0;
}

.hr-chapter-voice-options[hidden] {
  display: none;
}

.hr-chapter-voice-options button {
  min-height: 34px;
  color: #475467;
  font-size: 12px;
}

.hr-chapter-hint {
  margin: 8px 0 0;
  color: #71858f;
  font-size: 11px;
  line-height: 1.5;
}

.hr-cards {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hr-cards::-webkit-scrollbar,
.hr-copy::-webkit-scrollbar {
  display: none;
}

.hr-cards:focus {
  outline: none;
}

.hr-cards.is-dragging {
  scroll-snap-type: none;
}

.hr-card {
  display: grid;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 54px 20px 74px;
  padding-top: calc(54px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  align-items: start;
  justify-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hr-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  width: 100%;
  max-width: 1000px;
  height: 720px;
  max-height: calc(100vh - 112px);
  min-height: 0;
  overflow: hidden;
  background: #121e27;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.hr-visual {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(30, 78, 82, 0.86), rgba(16, 24, 33, 0.96)),
    #1b2b35;
}

.hr-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hr-visual-category {
  position: absolute;
  z-index: 2;
  bottom: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  color: #ffffff;
  background: rgba(7, 13, 18, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  font-size: 10px;
  line-height: 1;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.hr-visual-author {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  display: block;
  max-width: 58%;
  overflow: hidden;
  padding: 3px 6px;
  color: #ffffff;
  background: rgba(7, 13, 18, 0.28);
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.hr-favorite {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: #ffffff;
  background: rgba(7, 13, 18, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hr-favorite.active {
  color: #ffd166;
}

.hr-favorite svg {
  width: 18px;
  height: 18px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hr-favorite.active svg {
  fill: currentColor;
}

.hr-copy h2 {
  display: block;
  margin: 0;
  color: #ffffff;
  font-size: 36px;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.hr-cover-author {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #c7d6dd;
  font-size: 14px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hr-copy {
  min-width: 0;
  min-height: 0;
  margin-left: 18px;
  padding: 22px 28px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.home-recommend-overlay .discover-word-token {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  text-shadow: inherit;
  white-space: normal;
  overflow-wrap: inherit;
  vertical-align: baseline;
  cursor: pointer;
}

.home-recommend-overlay .discover-word-token:active { color: #ffd66e; }
.hr-inline-audio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #eef3f9;
  vertical-align: middle;
  cursor: pointer;
}
.hr-copy h2 .hr-inline-audio { width: 34px; height: 34px; margin-left: 9px; }
.hr-inline-audio svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hr-inline-spinner { width: 15px; height: 15px; border: 2px solid #81c9ff40; border-top-color: #81c9ff; border-radius: 50%; animation: hr-resource-spin .8s linear infinite; }
@keyframes hr-resource-spin { to { transform: rotate(360deg); } }
.hr-inline-audio[data-audio-state="pending"] { opacity: 0.2; }
.hr-inline-audio.ready, .hr-bottom-button.ready, .hr-word-actions .ready { color: #93e4c0; }
.hr-inline-audio.generating, .hr-bottom-button.generating, .hr-word-actions .generating { color: #81c9ff; opacity: 1; }
.hr-inline-audio.failed, .hr-bottom-button.failed, .hr-word-actions .failed { color: #ffb1a8; }
.hr-inline-audio.playing, .hr-bottom-button.playing, .hr-word-actions .playing { color: #6fe4d9; }
.hr-inline-audio.playing svg, .hr-bottom-button.playing svg { animation: hr-audio-pulse .85s ease-in-out infinite; }
.hr-inline-audio.generating svg, .hr-bottom-button.generating svg { animation: hr-audio-pulse 1.2s ease-in-out infinite; }
@keyframes hr-audio-pulse { 50% { opacity: 0.4; transform: scale(0.9); } }
.hr-summary-translation { margin: 10px 0 0; color: #a9dfc7; font-size: 15px; line-height: 1.65; }
.hr-word-panel, .hr-voice-panel {
  position: fixed;
  z-index: 20;
  right: 12px;
  bottom: 76px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  max-width: 520px;
  max-height: 65vh;
  margin: 0 auto;
  padding: 20px;
  overflow-y: auto;
  border: 1px solid #9edfd2;
  border-radius: 7px;
  background: #ffffff;
  color: #182230;
  box-shadow: 0 7px 22px rgba(15, 23, 42, .18);
}

.hr-voice-panel {
  background: #ffffff !important;
  border-color: #9edfd2 !important;
  color: #182230 !important;
}
.hr-voice-panel { z-index: 21; }
.hr-word-panel[hidden], .hr-voice-panel[hidden], [data-hr-translation][hidden] { display: none; }
.hr-word-panel strong { display: block; padding-right: 32px; color: #075985; font-size: 22px; }
.hr-word-panel [data-word-phonetic] { display: block; color: #64748b; margin-top: 5px; }
.hr-word-panel p { line-height: 1.65; white-space: pre-wrap; }
.hr-word-context {
  margin: 0;
  padding: 8px 9px;
  color: #475467;
  background: #f8fafc;
  border-radius: 6px;
  font-size: 12px;
}
.hr-word-context-wrap {
  margin-top: 10px;
}
.hr-word-context-wrap[hidden],
.hr-word-context-translation[hidden] {
  display: none;
}
.hr-word-context-tools {
  display: flex;
  justify-content: flex-end;
  margin-top: 5px;
}
.hr-word-context-tools button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 5px;
  padding: 0;
  color: #64748b;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}
.hr-word-context-tools button:hover {
  color: #075985;
  background: #eff8ff;
}
.hr-word-context-tools svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hr-word-context-translation {
  margin: 6px 0 0;
  color: #075985;
  font-size: 12px;
}
.hr-word-actions { display: flex; flex-wrap: wrap; }
.hr-word-actions button, .hr-voice-panel [data-voices] button { padding: 8px 10px; margin: 4px; background: #ffffff; color: #344054; border: 1px solid #cfd8e3; border-radius: 6px; font: inherit; cursor: pointer; }
.hr-voice-panel [data-voices] button { display: block; width: calc(100% - 8px); text-align: left; }
.hr-voice-hint { margin: 0 0 8px; color: #667085; font-size: 12px; line-height: 1.5; }
.hr-voice-option { display: flex !important; align-items: center; width: 100% !important; min-height: 48px; box-sizing: border-box; margin: 2px 0 !important; padding: 7px 8px !important; color: #344054 !important; background: transparent !important; border: 0 !important; border-radius: 6px !important; text-align: left; }
.hr-voice-option > * + * { margin-left: 8px; }
.hr-voice-option.selected { background: #eff8ff !important; color: #075985 !important; }
.hr-voice-option-radio { flex: 0 0 14px; width: 14px; height: 14px; border: 1px solid #98a2b3; border-radius: 50%; }
.hr-voice-option.selected .hr-voice-option-radio { border: 4px solid #0e7490; }
.hr-voice-option-copy { flex: 1 1 auto; min-width: 0; }
.hr-voice-option-copy strong, .hr-voice-option-copy small { display: block; }
.hr-voice-option-copy strong { font-size: 12px; line-height: 1.35; }
.hr-voice-option-copy small { margin-top: 2px; color: #98a2b3; font-size: 10px; line-height: 1.35; }
.hr-voice-option-check { color: #0e7490; visibility: hidden; }
.hr-voice-option.selected .hr-voice-option-check { visibility: visible; }
.hr-voice-confirm, .hr-voice-cancel { width: 100%; min-height: 40px; margin-top: 8px; padding: 7px 10px; border-radius: 6px; font: inherit; cursor: pointer; }
.hr-voice-confirm { color: #fff; background: #0e7490; border: 1px solid #0e7490; }
.hr-voice-cancel { color: #475467; background: transparent; border: 1px solid #d0d5dd; }
.hr-panel-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; background: transparent; color: #64748b; font-size: 24px; cursor: pointer; }
.hr-voice-panel h3 { padding-right: 30px; }

.hr-word-panel {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: calc(100% - 40px);
  max-width: 420px;
  max-height: 72vh;
  padding: 16px;
  transform: translate(-50%, -50%);
  background: #f0fdff;
  border: 1px solid #99d5df;
  border-radius: 16px;
  color: #17201b;
}

.hr-word-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hr-word-head strong {
  order: -1;
  flex: 1 1 auto;
  display: inline;
  min-width: 0;
  max-width: none;
  padding: 0;
  overflow: hidden;
  color: #164e63;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 34px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hr-word-icon {
  display: inline-grid;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  margin-left: 5px;
  padding: 0;
  place-items: center;
  color: #64748b;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.hr-word-icon:hover {
  color: #075985;
}

.hr-word-head [data-hr-word-action="audio"] {
  color: #0e7490;
}

.hr-word-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hr-word-panel [data-word-phonetic] {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.hr-word-panel [data-word-translation] {
  min-height: 42px;
  margin: 12px 0 0;
  padding-right: 1em;
  color: #17201b;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.7;
  text-align: left;
}

.hr-word-retry {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 5px auto 0;
  padding: 0;
  color: #d4dfe3;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.hr-word-retry:hover:not(:disabled) { color: #a9e5df; background: #ffffff12; }
.hr-word-retry:disabled { cursor: wait; opacity: .5; }
.hr-word-retry svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hr-word-retry[hidden] {
  display: none;
}

.hr-word-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(148, 163, 184, .2);
}

.word-panel.word-panel {
  position: fixed;
  z-index: 50;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: calc(100% - 40px);
  max-width: 420px;
  max-height: 72vh;
  margin: 0;
  padding: 16px;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  background: #14202c;
  border: 1px solid #ffffff24;
  border-radius: 16px;
  color: #eef3f9;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .35);
  overscroll-behavior: contain;
}

.word-panel-head {
  display: flex;
  align-items: center;
}

.word-panel-word {
  order: -1;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #eef3f9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 34px;
  overflow-wrap: break-word;
}

.word-panel-audio,
.word-panel-close,
.word-panel-detail,
.word-panel-head .word-favorite-trigger {
  display: inline-grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-left: 4px;
  padding: 0;
  place-items: center;
  color: #9eb3bd;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.word-panel-audio {
  color: #a9e5df;
  margin-left: 14px;
  border: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.word-panel-head .word-favorite-trigger { margin-left: 10px; }

.word-panel-detail {
  flex-basis: 23px;
  width: 23px;
  height: 23px;
  color: #9eb3bd;
}

.word-panel-close {
  color: #c5d1d8;
  font-size: 22px;
  line-height: 1;
}

.word-panel-audio svg,
.word-panel-detail svg,
.word-panel-head .word-favorite-trigger svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.word-panel .word-panel-translation {
  margin: 12px 0 0;
  padding-right: 1em;
  color: #eef3f9;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.7;
  text-align: left;
}

.word-panel .word-panel-meta {
  margin: 4px 0 0;
  color: #9eb3bd;
  font-size: 12px;
  text-align: left;
}
.hr-word-panel-footer { display: flex; align-items: center; justify-content: center; min-height: 36px; margin-top: 12px; padding-top: 7px; border-top: 1px solid #ffffff20; }
.hr-word-panel-count { display: inline-flex; align-items: center; min-height: 36px; padding: 0 6px; color: #9eb3bd; background: transparent; border: 0; border-radius: 4px; font-size: 11px; font-weight: 500; line-height: 1.2; cursor: pointer; }
.hr-word-panel-count:hover { color: #a9e5df; }
.hr-word-panel-delete { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; margin-left: 8px; padding: 0; color: #9eb3bd; background: transparent; border: 0; border-radius: 4px; cursor: pointer; }
.hr-word-panel-delete:hover { color: #ffb1a8; }
.hr-word-panel-delete svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hr-status { bottom: 78px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: reduce) {
  .hr-inline-audio svg, .hr-bottom-button svg { animation: none !important; }
}

.hr-eyebrow {
  display: flex;
  align-items: center;
  color: #9fd9d3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.hr-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  margin-right: 8px;
  background: #f0b35a;
  border-radius: 2px;
}

.hr-title-translation {
  margin: 6px 0 0;
  color: #e0f1ee;
  font-size: 18px;
  line-height: 1.4;
}

.hr-byline {
  margin: 10px 0 0;
  color: #91a5b1;
  font-size: 12px;
  line-height: 1.6;
}

.hr-metrics {
  display: flex;
  flex-wrap: wrap;
  margin: 8px 0 0;
}

.hr-metric {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: #d9e4e9;
  background: rgba(7, 13, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 11px;
  margin: 0 7px 7px 0;
}

.hr-summary-label,
.hr-chapter-label {
  display: block;
  margin: 24px 0 7px;
  color: #f0c377;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.hr-copy > .hr-summary-label:first-child {
  margin-top: 0;
}

.hr-summary {
  display: block;
  margin: 0;
  color: #d5dfe4;
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.hr-summary-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.hr-summary-tools {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

.hr-title-tools {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  vertical-align: middle;
}

.hr-card.is-expanded .hr-summary-text {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.hr-chapter-box {
  margin-top: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.hr-chapter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hr-chapter-heading {
  min-width: 0;
}

.hr-chapter-heading strong {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hr-chapter-heading span {
  display: block;
  margin-top: 3px;
  color: #9eb3bd;
  font-size: 11px;
  line-height: 1.45;
}

.hr-expand {
  flex: 0 0 auto;
  margin-left: 12px;
  min-height: 34px;
  padding: 0 11px;
  color: #d7f1eb;
  background: rgba(44, 132, 119, 0.22);
  border: 1px solid rgba(159, 217, 211, 0.38);
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
}

.hr-expand:hover:not(:disabled) {
  background: rgba(44, 132, 119, 0.34);
}

.hr-expand:disabled {
  cursor: wait;
  opacity: 0.68;
}

.hr-chapter-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hr-chapter-summary {
  margin: 0;
  color: #d5dfe4;
  font-size: 13px;
  line-height: 1.75;
}

.hr-chapter-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hr-chapter-list li {
  min-height: 36px;
  color: #aebfc8;
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hr-chapter-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 36px;
  padding: 0 4px;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.hr-chapter-list a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.hr-chapter-list a > * + * {
  margin-left: 9px;
}

.hr-chapter-list strong {
  overflow: hidden;
  color: #e7eef1;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hr-chapter-list-scroll {
  width: 100%;
  max-height: 180px;
  padding: 0 18px 0 0;
  overflow-y: auto;
  scrollbar-width: none;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.hr-chapter-list-scroll::-webkit-scrollbar {
  display: none;
}

.hr-chapter-scroll-shell {
  position: relative;
  width: 100%;
  min-height: 180px;
  margin-top: 12px;
}

.hr-chapter-scrollbar {
  position: absolute;
  z-index: 2;
  top: 4px;
  right: 3px;
  bottom: 4px;
  width: 14px;
  height: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  pointer-events: none;
}

.hr-chapter-scrollbar[hidden] {
  display: none;
}

.hr-chapter-scrollbar span {
  display: block;
  width: 100%;
  min-height: 36px;
  background: #c8eee7;
  border-radius: 7px;
}

.hr-excerpt-label {
  display: block;
  margin: 16px 0 7px;
  color: #9fd9d3;
  font-size: 11px;
}

.hr-excerpt {
  margin: 0;
  color: #bdcbd2;
  font-size: 13px;
  line-height: 1.8;
}

.hr-chapter-preview-block {
  margin-top: 8px;
}

.hr-chapter-preview,
.hr-chapter-preview-block .hr-excerpt {
  display: block;
  max-height: none;
  overflow: visible;
  color: #71858f;
}

.hr-chapter-preview-tools {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.hr-chapter-preview-tools button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin-left: 5px;
  padding: 0;
  place-items: center;
  color: #71858f;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.hr-chapter-preview-tools button:hover {
  color: #d7f1eb;
  background: transparent;
}

.hr-chapter-preview-tools button.ready {
  color: #15803d;
}

.hr-chapter-preview-tools button.playing {
  color: #059669;
}

.hr-chapter-preview-tools button.generating {
  color: #0564e9;
}

.hr-chapter-preview-tools button.failed {
  color: #b42318;
}

.hr-chapter-preview-tools button.playing svg {
  animation: hr-chapter-audio-pulse .85s ease-in-out infinite;
}

.hr-chapter-preview-tools button.playing svg path:nth-child(2) {
  animation: hr-chapter-audio-wave .85s ease-in-out infinite;
}

.hr-chapter-preview-tools button.playing svg path:nth-child(3) {
  animation: hr-chapter-audio-wave .85s ease-in-out .14s infinite;
}

@keyframes hr-chapter-audio-pulse {
  50% {
    opacity: .55;
    transform: scale(.9);
  }
}

@keyframes hr-chapter-audio-wave {
  50% {
    opacity: .35;
  }
}

.hr-chapter-preview-tools svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hr-chapter-preview-translation {
  margin: 5px 0 0;
  color: #71858f;
  font-size: 12px;
  line-height: 1.6;
}

.hr-chapter-preview-translation[hidden] {
  display: none;
}

.hr-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-bottom: 4px;
}

.hr-actions a,
.hr-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin: 0 9px 9px 0;
}

.hr-read {
  color: #132b2b;
  background: #d7f1eb;
  border: 1px solid #d7f1eb;
}

.hr-read:hover {
  background: #c4e9e1;
}

.hr-book {
  color: #e2ebef;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hr-book:hover {
  border-color: rgba(255, 255, 255, 0.46);
}

.hr-empty {
  display: grid;
  min-height: 100%;
  padding: 80px 24px;
  place-items: center;
  text-align: center;
}

.hr-empty h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.hr-empty p {
  max-width: 420px;
  margin: 0;
  color: #9eb3bd;
  font-size: 13px;
  line-height: 1.8;
}

.hr-spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 16px;
  border: 2px solid rgba(215, 241, 235, 0.22);
  border-top-color: #d7f1eb;
  border-radius: 50%;
  animation: hr-spin 0.9s linear infinite;
}

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

.home-recommend-overlay.hr-mode-table .hr-cards {
  padding: 54px 20px 80px;
  padding-top: calc(54px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  scroll-snap-type: none;
}

.hr-table-wrap {
  width: 100%;
  max-width: 1120px;
  min-height: calc(100vh - 120px);
  min-height: calc(100dvh - 120px);
  margin: 0 auto;
  overflow: hidden;
  background: rgba(18, 30, 39, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.hr-table-search-filter {
  padding: 10px 12px;
  color: #dce6ea;
  font-size: 13px;
}

.hr-table-search-filter button {
  margin-left: 8px;
  padding: 1px 7px;
  border: 0;
  border-radius: 5px;
  background: #334852;
  color: #fff;
  cursor: pointer;
}

.hr-table-no-results {
  margin: 30px 12px;
  color: #b5c8d0;
  text-align: center;
}

.hr-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #dce6ea;
  font-size: 13px;
}

.hr-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 42px;
  padding: 0 12px;
  color: #9eb3bd;
  background: #17252f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}

.hr-table td {
  height: 72px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  vertical-align: middle;
}

.hr-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.hr-table th:nth-child(1),
.hr-table td:nth-child(1) {
  width: 52px;
  text-align: center;
}

.hr-table th:nth-child(3),
.hr-table td:nth-child(3) {
  width: 94px;
}

.hr-table th:nth-child(4),
.hr-table td:nth-child(4) {
  width: 130px;
}

.hr-table th:nth-child(5),
.hr-table td:nth-child(5) {
  width: 94px;
}

.hr-table th:nth-child(6),
.hr-table td:nth-child(6),
.hr-table th:nth-child(7),
.hr-table td:nth-child(7) {
  width: 78px;
  text-align: right;
}

.hr-table th:nth-child(8),
.hr-table td:nth-child(8) {
  width: 116px;
}

.hr-table-index {
  color: #7f96a3;
  font-size: 11px;
}

.hr-table-book a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.hr-table-book a > span:last-child {
  min-width: 0;
  margin-left: 14px;
}

.hr-table-book img,
.hr-table-cover-placeholder {
  display: block;
  width: 42px;
  height: 56px;
  object-fit: cover;
  background: #263743;
  border-radius: 5px;
}

.hr-table-book strong,
.hr-table-book small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hr-table-book strong {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.45;
}

.hr-table-book small,
.hr-table-chapters small {
  margin-top: 3px;
  color: #91a5b1;
  font-size: 11px;
}

.hr-table-category,
.hr-table-author,
.hr-table-words,
.hr-table-reads {
  overflow: hidden;
  color: #b7c5cc;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hr-table-chapters strong {
  color: #d7f1eb;
  font-size: 12px;
}

.hr-table-actions {
  white-space: nowrap;
}

.hr-table-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  color: #173b3c;
  background: #d7f1eb;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.hr-table-favorite {
  display: inline-grid;
  width: 32px;
  height: 32px;
  margin-left: 6px;
  padding: 0;
  place-items: center;
  color: #9eb3bd;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  cursor: pointer;
  vertical-align: middle;
}

.hr-table-favorite.active {
  color: #ffd166;
  border-color: rgba(255, 209, 102, 0.5);
}

.hr-table-favorite svg {
  width: 16px;
  height: 16px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hr-table-favorite.active svg {
  fill: currentColor;
}

@media (max-width: 760px) {
  .hr-topbar {
    top: 8px;
    top: calc(8px + env(safe-area-inset-top, 0px));
    right: 0;
    left: 0;
    width: 100%;
    height: 36px;
    padding: 2px 8px;
  }

  .hr-has-module-switch .hr-topbar {
    justify-content: space-between;
  }

  .hr-has-module-switch .hr-topbar > * + * {
    margin-left: 8px;
  }

  .hr-has-module-switch .home-view-switch--overlay {
    width: 156px;
  }

  .hr-position {
    left: 12px;
  }

  .hr-status {
    bottom: 78px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    right: auto;
    left: 50%;
    width: calc(100% - 28px);
  }

  .hr-card {
    padding: 48px 10px 70px;
    padding-top: calc(48px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  .hr-panel {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(176px, 34vh) minmax(0, 1fr);
    width: 100%;
    height: calc(100vh - 112px);
    height: calc(100dvh - 112px);
  }

  .hr-visual {
    min-height: 176px;
  }

  .hr-copy h2 {
    font-size: 28px;
  }

  .hr-copy {
    margin-top: 12px;
    margin-left: 0;
    padding: 14px 14px 18px;
  }

  .hr-title-translation {
    font-size: 16px;
  }

  .hr-metrics {
    margin-top: 8px;
  }

  .hr-summary-label,
  .hr-chapter-label {
    margin-top: 16px;
  }

  .hr-summary {
    font-size: 14px;
    line-height: 1.65;
  }

  .hr-summary-text {
    -webkit-line-clamp: 5;
  }

  .hr-chapter-box {
    margin-top: 15px;
    padding: 12px;
  }

  .hr-actions {
    margin-top: 16px;
  }

  .hr-actions a,
  .hr-actions button {
    min-height: 40px;
    padding: 0 14px;
  }

  .hr-chapter-panel {
    top: 92px;
    top: calc(92px + env(safe-area-inset-top, 0px));
    right: 10px;
    bottom: 68px;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 20px);
  }

  .home-recommend-overlay.hr-mode-table .hr-cards {
    padding: 48px 8px 76px;
    padding-top: calc(48px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .hr-table-wrap {
    min-height: calc(100vh - 84px);
    min-height: calc(100dvh - 84px);
  }

  .hr-table th {
    top: 0;
    padding: 0 7px;
  }

  .hr-table td {
    height: 68px;
    padding: 8px 7px;
  }

  .hr-table th:nth-child(1),
  .hr-table td:nth-child(1),
  .hr-table th:nth-child(3),
  .hr-table td:nth-child(3),
  .hr-table th:nth-child(4),
  .hr-table td:nth-child(4),
  .hr-table th:nth-child(6),
  .hr-table td:nth-child(6),
  .hr-table th:nth-child(7),
  .hr-table td:nth-child(7) {
    display: none;
  }

  .hr-table th:nth-child(2),
  .hr-table td:nth-child(2) {
    width: auto;
  }

  .hr-table th:nth-child(5),
  .hr-table td:nth-child(5) {
    width: 64px;
    text-align: left;
  }

  .hr-table th:nth-child(8),
  .hr-table td:nth-child(8) {
    width: 76px;
  }

  .hr-table-book a {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .hr-table-book a > span:last-child {
    margin-left: 10px;
  }

  .hr-table-book img,
  .hr-table-cover-placeholder {
    width: 36px;
    height: 48px;
  }

  .hr-table-open {
    min-height: 30px;
    padding: 0 6px;
    font-size: 11px;
  }

  .hr-table-favorite {
    display: none;
  }
}

@media (max-height: 680px) and (max-width: 760px) {
  .hr-panel {
    grid-template-rows: minmax(138px, 29vh) minmax(0, 1fr);
  }

  .hr-visual {
    min-height: 138px;
  }

  .hr-copy {
    padding-top: 14px;
  }

  .hr-summary-text {
    -webkit-line-clamp: 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hr-spinner {
    animation-duration: 3s;
  }
}
