.cmgr {
  --cm-red: #e1251b;
  --cm-text: #171717;
  --cm-muted: #777d88;
  --cm-line: #dadde2;
  width: 100%;
  overflow: hidden;
  background: #fff;
  padding: 42px 0 16px;
  font-family: Roboto, Arial, sans-serif;
}

.cmgr * { box-sizing: border-box; }

.cmgr-inner { width: 100%; margin: 0 auto; }

.cmgr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 clamp(20px, 4.5vw, 76px);
  margin-bottom: 24px;
}

.cmgr-score-group {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  white-space: nowrap;
}

.cmgr-rating {
  color: #101d57;
  font-size: clamp(44px, 4.2vw, 66px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -2.5px;
}

.cmgr-stars { display: inline-flex; align-items: center; gap: 1px; line-height: 1; }
.cmgr-star { color: #d8dbe0; font-size: 24px; }
.cmgr-star.is-active { color: var(--cm-red); }

.cmgr-divider { width: 1px; height: 34px; background: var(--cm-line); }

.cmgr-count {
  color: #525969;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

.cmgr-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--cm-text);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.cmgr-more-text { color: var(--cm-text); }

.cmgr-more-arrow {
  color: var(--cm-red);
  font-size: 25px;
  line-height: 1;
  transition: transform .2s ease;
}

.cmgr-more:hover .cmgr-more-arrow { transform: translateX(4px); }

.cmgr-viewport {
  width: 100%;
  overflow: hidden;
  padding: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3.5%, #000 96.5%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 3.5%, #000 96.5%, transparent 100%);
}

.cmgr-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  gap: 12px;
}

.cmgr-viewport.is-draggable {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.cmgr-viewport.is-dragging {
  cursor: grabbing;
}

.cmgr-viewport.is-dragging a,
.cmgr-viewport.is-dragging img {
  -webkit-user-drag: none;
  user-drag: none;
}

.cmgr-card {
  position: relative;
  flex: 0 0 355px;
  min-height: 188px;
  background: #fff;
  padding: 18px 22px 19px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.cmgr-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cmgr-author-block { display: flex; align-items: center; gap: 9px; min-width: 0; }
.cmgr-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.cmgr-author-meta { min-width: 0; }

.cmgr-author {
  position: relative;
  z-index: 2;
  display: block;
  color: var(--cm-text);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 650;
  text-decoration: none;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmgr-date-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; min-width: 0; }
.cmgr-date, .cmgr-branch { color: var(--cm-muted); font-size: 12px; line-height: 1.2; }
.cmgr-branch::before { content: "•"; margin-right: 8px; color: #b0b4bc; }

.cmgr-google-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.cmgr-google-g {
  display: block;
  width: 18px;
  height: 18px;
}

.cmgr-card-stars { margin-top: 11px; }
.cmgr-card-stars .cmgr-star { font-size: 18px; }

.cmgr-text {
  margin: 10px 0 0;
  color: #23262d;
  font-size: 14px;
  line-height: 1.47;
  font-weight: 400;
}

.cmgr-card-link { position: absolute; inset: 0; z-index: 1; }
.cmgr-author { z-index: 3; }

.cmgr-attribution {
  padding: 8px clamp(20px, 4.5vw, 76px) 0;
  color: #969ba5;
  font: 11px/1.2 Roboto, Arial, sans-serif;
  text-align: right;
}

.cmgr-admin-message {
  padding: 16px 18px;
  background: #fff4f3;
  border-left: 4px solid var(--cm-red, #e1251b);
  color: #6a1b17;
}

@media (max-width: 900px) {
  .cmgr-top { align-items: flex-end; }
  .cmgr-score-group { gap: 11px; }
  .cmgr-count { font-size: 12px; letter-spacing: .8px; }
  .cmgr-divider { height: 28px; }
  .cmgr-card { flex-basis: 320px; min-height: 184px; }
}

@media (max-width: 650px) {
  .cmgr { padding-top: 28px; }
  .cmgr-top { display: block; padding: 0 18px; margin-bottom: 18px; }
  .cmgr-score-group { gap: 8px; overflow: hidden; }
  .cmgr-rating { font-size: 42px; letter-spacing: -1.8px; }
  .cmgr-score-group > .cmgr-stars .cmgr-star { font-size: 16px; }
  .cmgr-divider { height: 24px; }
  .cmgr-count { font-size: 10px; letter-spacing: .45px; }
  .cmgr-more { margin-top: 12px; font-size: 12px; }
  .cmgr-more-arrow { font-size: 22px; }
  .cmgr-viewport { -webkit-mask-image: none; mask-image: none; }
  .cmgr-track { gap: 8px; }
  .cmgr-card { flex-basis: 286px; min-height: 176px; padding: 16px 18px; }
  .cmgr-author { max-width: 185px; font-size: 13px; }
  .cmgr-date, .cmgr-branch { font-size: 11px; }
  .cmgr-text { font-size: 13px; line-height: 1.45; }
  .cmgr-attribution { padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cmgr-viewport { overflow-x: auto; }
}
