:root {
  --bg: #f5f5f6;
  --panel: #ffffff;
  --panel-soft: #f3f4f6;
  --text: #111111;
  --text-soft: #666b75;
  --border: #e7e7ea;
  --border-strong: #d9dce2;
  --shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 16px 34px rgba(15, 23, 42, 0.08);
  --accent: #1163ff;
  --star-filled: #111111;
  --star-outline: #363636;
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1360px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.page { min-height: 100vh; padding: 28px 16px 56px; }
.container { width: min(100%, var(--container)); margin: 0 auto; }
.hero { margin-bottom: 22px; }
.eyebrow {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.hero-title { margin: 0; font-size: clamp(1.7rem, 2.1vw, 2.35rem); font-weight: 750; letter-spacing: -0.03em; }
.hero-subtitle {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.overview { padding: 24px; margin-bottom: 20px; }
.overview-main { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; }
.score-value { font-size: clamp(2.3rem, 3vw, 3rem); line-height: 0.95; font-weight: 800; letter-spacing: -0.04em; }
.muted { margin: 10px 0 0; color: var(--text-soft); font-size: 0.95rem; }

.stars {
  --star-size: 18px;
  --star-gap: 2px;
  position: relative;
  display: inline-block;
  line-height: 0;
  vertical-align: middle;
}
.stars-track,
.stars-fill {
  display: inline-flex;
  align-items: center;
  gap: var(--star-gap);
}
.stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  width: var(--fill-width, 0%);
  pointer-events: none;
  white-space: nowrap;
}
.star {
  width: var(--star-size);
  height: var(--star-size);
  flex: 0 0 var(--star-size);
  display: inline-flex;
}
.star svg { width: 100%; height: 100%; display: block; }
.star--filled { color: var(--star-filled); }
.star--outline { color: var(--star-outline); }
.score-block .stars { --star-size: 20px; --star-gap: 3px; margin-top: 8px; }
.review-head .stars { --star-size: 16px; }

.rating-breakdown { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 42px 1fr 44px; gap: 12px; align-items: center; font-size: 0.92rem; }
.bar-label, .bar-value { color: var(--text-soft); }
.bar-track { height: 9px; background: #eef0f3; border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #111111, #4a4f58); }
.toolbar { padding: 16px; margin-bottom: 24px; }
.toolbar-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(170px, 1fr) minmax(170px, 1fr) 120px; gap: 12px; }
.field input, .field select {
  width: 100%;
  height: 52px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #fff;
  padding: 0 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input::placeholder { color: #9aa1ac; }
.field input:focus, .field select:focus {
  border-color: #aeb6c4;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.05);
}
.btn {
  height: 52px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 650;
  color: #fff;
  background: #111111;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(17, 17, 17, 0.12); }
.review-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.review-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.review-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.date {
  color: var(--text-soft);
  font-size: 0.92rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.review-title {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 550;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  min-height: 6.6em;
}
.review-author { margin: 0 0 16px; color: var(--text-soft); font-size: 0.94rem; }
.reply-box {
  margin-top: auto;
  padding: 16px;
  background: var(--panel-soft);
  border-radius: var(--radius-lg);
  min-height: 152px;
}
.reply-text {
  margin: 0;
  color: #1d2430;
  font-size: 0.94rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reply-placeholder {
  margin-top: auto;
  min-height: 152px;
  display: flex;
  align-items: end;
  color: var(--text-soft);
  font-size: 0.94rem;
}
.brand-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.brand-logo { width: 40px; height: 40px; flex: 0 0 40px; }
.brand-name { font-weight: 700; }
.brand-date {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  background: var(--accent);
}
.load-more { margin-top: 28px; display: flex; justify-content: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
@media (max-width: 1199.98px) {
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .page { padding: 20px 14px 40px; }
  .overview-main { grid-template-columns: 1fr; gap: 22px; }
  .toolbar-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; gap: 18px; }
  .review-card { padding: 18px; border-radius: 18px; }
  .review-title { min-height: auto; -webkit-line-clamp: 5; }
}
