.gr-widget { font-family: system-ui, -apple-system, sans-serif; }

/* ── Summary bar ── */
.gr-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}
.gr-summary-rating { font-size: 2rem; font-weight: 700; line-height: 1; }
.gr-summary-stars  { display: flex; gap: 2px; }
.gr-summary-count  { color: #666; font-size: 14px; }
a.gr-summary-count { text-decoration: underline; cursor: pointer; }
a.gr-summary-count:hover { color: #1a73e8; }
.gr-summary-link   { font-size: 13px; color: #1a73e8; text-decoration: none; margin-left: auto; }
.gr-summary-link:hover { text-decoration: underline; }

/* ── Stars ── */
.gr-star          { fill: #ddd; }
.gr-star.is-filled { fill: #fbbc04; }

/* ── Carousel wrapper ── */
.gr-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.25s;
}
.gr-carousel.is-ready { opacity: 1; }
.gr-carousel-track-wrap {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.gr-carousel-track {
  display: flex;
  gap: 12px;
  transition: transform 0.33s ease;
  will-change: transform;
}

/* ── Prev / Next buttons ── */
.gr-carousel-btn {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid #d5d5d5;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.10);
  transition: background .15s, opacity .15s;
  padding: 0;
  color: #444;
}
.gr-carousel-btn:hover  { background: #f0f0f0; }
.gr-carousel-btn:disabled { opacity: .3; cursor: default; }

/* ── Cards ── */
.gr-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
  transition: box-shadow .2s;
}
.gr-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.10); }
.gr-card-header { display: flex; align-items: center; gap: 10px; }
.gr-avatar      { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.gr-card-meta   { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gr-author      { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-card-stars  { display: flex; gap: 1px; }
.gr-time        { font-size: 11px; color: #999; }
.gr-text        {
  font-size: 13px; color: #444; margin: 0; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── States ── */
.gr-loading, .gr-empty { padding: 24px; color: #999; text-align: center; font-size: 14px; }
.gr-error               { padding: 24px; color: #c0392b; text-align: center; font-size: 14px; }


/* ── Modal ── */
.gr-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}
.gr-modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 28px 28px 24px;
  max-width: 520px; width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
}
.gr-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 24px; line-height: 1;
  cursor: pointer; color: #666; padding: 0;
}
.gr-modal-close:hover { color: #111; }
.gr-modal-text { font-size: 14px; line-height: 1.65; color: #333; margin: 0; white-space: pre-wrap; }
