html {
  scroll-behavior: smooth;
}

nav {
  margin-bottom: 16px;
}

.book-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1064px;
  margin: auto;
  padding-inline: 20px;
  padding-bottom: 32px;
  color: #eaeaea;
}
[data-theme=light] .book-content {
  color: #0f0f0f;
}
.book-content .left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  line-height: 1.2;
  position: sticky;
  top: 32px;
  width: 260px;
  flex-shrink: 0;
}
.book-content .left .book-name {
  font-size: 1.285rem;
  font-weight: 500;
}
.book-content .left img {
  max-width: 260px;
  border-radius: 14px;
  box-shadow: 0 0px 20px rgba(255, 255, 255, 0.1882352941);
  transition: box-shadow 0.25s ease;
}
.book-content .left .read-link {
  width: 100%;
  text-decoration: none;
  color: inherit;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
  transition: all 0.2s ease;
}
@media (min-width: 1024px) {
  .book-content .left .read-link:hover {
    background: rgba(255, 255, 255, 0.09);
  }
}
[data-theme=light] .book-content .left .read-link {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
@media (min-width: 1024px) {
  [data-theme=light] .book-content .left .read-link:hover {
    background: rgba(0, 0, 0, 0.07);
  }
}
.book-content .left .book-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.book-content .left .book-info .info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}
@media (min-width: 1024px) {
  .book-content .left .book-info .info:hover {
    background: rgba(255, 255, 255, 0.08);
  }
}
[data-theme=light] .book-content .left .book-info .info {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
@media (min-width: 1024px) {
  [data-theme=light] .book-content .left .book-info .info:hover {
    background: rgba(0, 0, 0, 0.06);
  }
}
.book-content .left .book-info .info i {
  font-size: 0.875rem;
  opacity: 0.75;
}
.book-content .left .book-info .info .label {
  font-size: 0.75rem;
  opacity: 0.6;
}
.book-content .left .book-info .info .value {
  font-size: 0.875rem;
  font-weight: 600;
}
.book-content .right {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 28px;
  line-height: 1.2;
}
.book-content .right .author-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.book-content .right .author-name .author-emblem {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}
.book-content .right .author-name .author-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.book-content .right .author-name span {
  font-weight: 500;
  opacity: 0.9;
}
.book-content .right .status {
  width: fit-content;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
[data-theme=light] .book-content .right .status {
  background: rgba(0, 0, 0, 0.08);
  color: #000;
}
.book-content .right .contents {
  margin-top: 20px;
  padding: 22px;
  border-radius: 16px;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}
@media (max-width: 768px) {
  .book-content .right .contents {
    padding-inline: 16px;
  }
}
[data-theme=light] .book-content .right .contents {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #0f0f0f;
}
.book-content .right .contents h2 {
  font-size: 1.125rem;
  margin-bottom: 14px;
  font-weight: 600;
}
.book-content .right .contents .contents-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.book-content .right .contents a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}
@media (min-width: 1024px) {
  .book-content .right .contents a:hover {
    background: rgba(255, 255, 255, 0.08);
  }
}
[data-theme=light] .book-content .right .contents a {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
@media (min-width: 1024px) {
  [data-theme=light] .book-content .right .contents a:hover {
    background: rgba(0, 0, 0, 0.06);
  }
}
.book-content .right .contents a .content-left .name {
  font-size: 0.875rem;
  font-weight: 500;
}
.book-content .right .contents a .content-right .date {
  font-size: 0.75rem;
  opacity: 0.6;
  white-space: nowrap;
}

.other-books {
  margin-top: 40px;
}
.other-books h2 {
  font-size: 1.125rem;
  margin-bottom: 14px;
  font-weight: 600;
}
.other-books .books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.other-books .book-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}
[data-theme=light] .other-books .book-card {
  background: #fffcfc;
  border-color: rgba(77, 69, 69, 0.068);
}
@media (min-width: 1024px) {
  .other-books .book-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
  }
  [data-theme=light] .other-books .book-card:hover {
    background: #fffcfc;
    border-color: rgba(77, 69, 69, 0.068);
  }
}
.other-books .book-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.other-books .book-card .info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.other-books .book-card .info .name {
  font-size: 0.875rem;
  font-weight: 600;
}
.other-books .book-card .info .meta {
  font-size: 0.75rem;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .book-content {
    flex-direction: column;
    gap: 24px;
  }
  .book-content .left {
    position: relative;
    top: auto;
    width: 100%;
  }
  .book-content .left img {
    max-width: 180px;
  }
  .book-content .right {
    gap: 20px;
  }
  .other-books .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}