/* ============================================================
   API novel library — reader details
   ============================================================ */

.novel-grid {
  max-width: none;
}

.tile-tags {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.tile-tags span {
  padding: 2px 5px;
  border: 1px solid rgba(224, 191, 137, .12);
  border-radius: 99px;
  color: #7e9189;
  font-size: 8px;
  letter-spacing: .04em;
}

.novel-article-head {
  position: relative;
  z-index: 1;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(145, 105, 52, .18);
  text-align: center;
}

.article-kicker {
  margin: 0;
  color: #a17941;
  font-family: "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: .24em;
}

.article-volume {
  margin: 12px 0 0;
  color: #a47a43;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 12px;
  letter-spacing: .18em;
}

.novel-article-head h1 {
  margin: 17px 0 9px;
  color: #29261f;
  font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.28;
}

.article-sub {
  margin: 0;
  color: #8d7c61;
  font-family: "Songti SC", "STSong", serif;
  font-size: 12px;
  letter-spacing: .06em;
}

.article-quote {
  position: relative;
  max-width: 380px;
  margin: 22px auto 0;
  color: #7b6b53;
  font-family: "Songti SC", "STSong", serif;
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: .03em;
}

.article-quote::before,
.article-quote::after {
  content: "·";
  margin: 0 8px;
  color: #b78b51;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: #a08e72;
  font-size: 9px;
  letter-spacing: .06em;
}

.chapter-toc {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin: 22px 0 0;
}

.chapter-toc button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid rgba(146, 107, 55, .16);
  border-radius: 99px;
  background: rgba(255, 252, 242, .35);
  color: #8d7b5f;
  font-family: inherit;
  font-size: 9px;
  letter-spacing: .03em;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.chapter-toc button:hover,
.chapter-toc button:focus-visible {
  border-color: rgba(154, 111, 52, .38);
  background: rgba(255, 251, 238, .75);
  color: #5e4d35;
  outline: none;
}

.article-rule {
  max-width: 300px;
  height: 1px;
  margin: 26px auto 0;
  background: linear-gradient(90deg, transparent, rgba(154, 112, 53, .3), transparent);
}

.novel-section h2 .section-no,
.novel-section h2 span:first-child {
  color: #b08a55;
  font-family: "Times New Roman", serif;
  font-size: 10px;
  font-weight: normal;
  letter-spacing: .12em;
}

.novel-next {
  position: relative;
  z-index: 1;
  margin-top: 38px;
  padding: 22px 22px 21px;
  border: 1px solid rgba(148, 106, 53, .18);
  border-radius: 3px 14px 3px 14px;
  background: rgba(255, 251, 239, .4);
}

.next-kicker {
  color: #a0845d;
  font-family: "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: .18em;
}

.novel-next p {
  margin: 9px 0 2px;
  color: #8b795c;
  font-family: "Songti SC", "STSong", serif;
  font-size: 10px;
  line-height: 1.7;
}

.novel-next h3 {
  margin: 0 0 16px;
  color: #4a3f2e;
  font-family: "Songti SC", "STSong", serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .06em;
}

.novel-fin {
  text-align: center;
}

.novel-fin h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.novel-fin-copy {
  max-width: 430px;
  margin: 0 auto 16px !important;
  font-size: 11px !important;
}

.reader-cta {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid rgba(151, 105, 46, .32);
  border-radius: 3px 9px 3px 9px;
  background: rgba(177, 128, 65, .12);
  color: #875b28;
  font-family: "Songti SC", "STSong", serif;
  font-size: 11px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.reader-cta:hover,
.reader-cta:focus-visible {
  background: rgba(177, 128, 65, .2);
  transform: translateY(-1px);
  outline: none;
}

.reader-cta.is-ghost {
  border-color: rgba(148, 106, 53, .18);
  background: transparent;
  color: #8c7b60;
}

.reader-text-link {
  display: block;
  margin: 13px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9d8a6c;
  font-family: "Songti SC", "STSong", serif;
  font-size: 10px;
  letter-spacing: .06em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.reader-prev {
  margin: 24px 0 0;
  color: #a08c6e;
  font-family: "Songti SC", "STSong", serif;
  font-size: 10px;
  text-align: center;
}

.reader-prev button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #9d713a;
  font-family: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.reader-loading {
  position: relative;
  z-index: 1;
  min-height: 430px;
  padding: 80px 24px;
  text-align: center;
}

.reader-loading-lamp {
  display: inline-block;
  width: 42px;
  height: 56px;
  margin-bottom: 22px;
  border: 1px solid rgba(170, 124, 64, .45);
  border-radius: 50% 50% 44% 44%;
  background: radial-gradient(circle at 50% 28%, rgba(255, 241, 189, .95), rgba(219, 165, 87, .35) 42%, rgba(151, 104, 49, .08) 72%);
  box-shadow: 0 0 40px rgba(213, 162, 84, .22);
}

.reader-kicker {
  margin: 0 0 13px;
  color: #a17941;
  font-family: "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: .24em;
}

.reader-loading h1 {
  margin: 0 0 13px;
  color: #302a20;
  font-family: "Songti SC", "STSong", serif;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: .08em;
}

.reader-loading p {
  margin: 0;
  color: #958366;
  font-family: "Songti SC", "STSong", serif;
  font-size: 12px;
  line-height: 1.9;
}

.reader-loading code {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(127, 92, 46, .08);
  color: #95662f;
  font-family: Consolas, monospace;
  font-size: 11px;
}

.reader-error-box {
  min-height: 380px;
}

.reader-error-box h1 {
  font-size: 25px;
}

.reader-error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

@media (max-width: 700px) {
  .novel-article-head {
    padding-bottom: 18px;
  }

  .novel-article-head h1 {
    font-size: 30px;
    margin-top: 13px;
  }

  .article-quote {
    margin-top: 17px;
    font-size: 11px;
  }

  .chapter-toc {
    margin-top: 17px;
  }

  .chapter-toc button {
    font-size: 8px;
    padding: 4px 7px;
  }

  .novel-next {
    margin-top: 28px;
    padding: 17px 15px;
  }

  .reader-loading {
    min-height: 330px;
    padding: 54px 15px;
  }

  .reader-loading h1 {
    font-size: 28px;
  }
}
