.reviews-hero { padding: 82px 0 88px; color: #fff; background: linear-gradient(112deg, rgba(9, 22, 44, .98), rgba(34, 44, 89, .91)), url("/assets/moonlit-hero.png") center / cover; }
.reviews-hero h1 { max-width: 740px; margin-bottom: 16px; font-size: clamp(44px, 5.4vw, 74px); }
.reviews-hero > .shell > p:last-child { max-width: 610px; margin: 0; color: #e1e5f1; font-size: 18px; }
.reviews-index { padding-block: 70px 90px; }
.reviews-index__heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.reviews-index__heading h2 { margin: 0; }
.reviews-index__count { margin: 0 0 7px; color: #737c91; font-size: 14px; white-space: nowrap; }
.reviews-index__count strong { color: #3e3988; }
.review-sort { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 23px; }
.review-sort > span { margin-right: 4px; color: #64708a; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.review-sort__button { padding: 7px 12px; border: 1px solid #d6d8e2; border-radius: 99px; color: #485572; background: #fff; cursor: pointer; font: 700 12px/1.2 "Source Sans Pro", sans-serif; transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.review-sort__button:hover, .review-sort__button:focus-visible { border-color: #665dcc; color: #3e3988; outline: none; transform: translateY(-1px); }
.review-sort__button.is-active { border-color: #3e3988; color: #fff; background: #3e3988; }
.reviews-table-wrap { overflow-x: auto; border-top: 4px solid #665dcc; box-shadow: 0 10px 28px rgba(21, 32, 63, .08); }
.reviews-table { width: 100%; min-width: 880px; border-collapse: collapse; background: #fff; text-align: left; }
.reviews-table th { padding: 14px 19px; color: #6d7485; background: #f2f1f8; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.reviews-table td { padding: 16px 19px; border-bottom: 1px solid #e8e8ee; vertical-align: middle; }
.reviews-table tbody tr { transition: background 170ms ease; }
.reviews-table tbody tr:hover { background: #faf9fe; }
.reviews-table__book { width: 230px; }
.reviews-table__book-link { display: flex; align-items: center; gap: 14px; min-width: 190px; }
.reviews-table__cover { width: 46px; height: 68px; flex: 0 0 auto; object-fit: cover; box-shadow: 3px 5px 10px rgba(18, 31, 58, .2); }
.reviews-table__book strong { display: block; color: #172544; font: 600 20px/1.1 "Playfair Display", serif; letter-spacing: -.025em; }
.reviews-table__book small { display: block; margin-top: 4px; color: #60708b; font-size: 12px; font-weight: 600; }
.reviews-table__tags { display: flex; flex-wrap: wrap; gap: 5px; max-width: 190px; }
.reviews-table__tags span { padding: 3px 8px; border-radius: 99px; color: #48427f; background: #ebeaf7; font-size: 11px; line-height: 1.35; }
.reviews-table__excerpt { width: 40%; color: #59647a; font-size: 13px; line-height: 1.48; }
.reviews-table__excerpt a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.reviews-table__excerpt a:hover, .reviews-table__book-link:hover strong, .reviews-table__score a:hover { color: #514aa7; }
.reviews-table__score-heading { text-align: right; }
.reviews-table__score { width: 130px; text-align: right; white-space: nowrap; }
.reviews-table__score a { display: inline-grid; grid-template-columns: auto auto auto; align-items: baseline; column-gap: 4px; color: #273653; }
.reviews-table__stars { position: relative; grid-column: 1 / -1; color: #d9d8d1; font-size: 13px; letter-spacing: 1px; }
.reviews-table__stars span { position: absolute; inset: 0 auto 0 0; width: var(--score); overflow: hidden; color: #cf8b36; white-space: nowrap; }
.reviews-table__score strong { font-size: 20px; line-height: 1.15; }
.reviews-table__score small { color: #7a8498; font-size: 11px; }

@media (max-width: 800px) {
  .reviews-hero { padding-block: 61px 66px; }
  .reviews-index { padding-block: 52px 65px; }
}

@media (max-width: 560px) {
  .reviews-hero > .shell > p:last-child { font-size: 16px; }
  .reviews-index__heading { align-items: start; flex-direction: column; gap: 8px; }
  .reviews-index__count { margin: 0; }
  .review-sort { gap: 7px; }
  .review-sort > span { width: 100%; }
  .reviews-table-wrap { margin-inline: -18px; }
  .reviews-table { min-width: 720px; }
  .reviews-table th, .reviews-table td { padding-inline: 13px; }
  .reviews-table__book { width: 205px; }
  .reviews-table__excerpt { width: 300px; }
}
