.cbr {
	--cbr-red: #e8404a;
	--cbr-star: #f5b301;
	--cbr-ink: #1d1d1f;
	--cbr-muted: #6b6b70;
	--cbr-card: #fff;
	--cbr-line: #ececef;
	margin: 32px 0;
	color: var(--cbr-ink);
}
.cbr * { box-sizing: border-box; }
.cbr-title { text-align: center; margin: 0 0 20px; }

.cbr-wrap {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: 24px;
	align-items: center;
}

/* Summary */
.cbr-summary { text-align: center; }
.cbr-word { font-size: 24px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.cbr-summary .cbr-stars { font-size: 28px; }
.cbr-based { font-size: 14px; color: var(--cbr-muted); margin: 4px 0 12px; }
.cbr-chips { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cbr-chips li {
	display: flex; align-items: center; gap: 6px; margin: 0;
	font-size: 13px; font-weight: 600; padding: 5px 10px;
	border: 1px solid var(--cbr-line); border-radius: 999px; background: #fff;
}
.cbr-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.cbr-chip-n { margin-left: auto; color: var(--cbr-muted); font-weight: 500; }
.cbr-write {
	display: inline-block; padding: 8px 16px; border-radius: 999px;
	background: var(--cbr-red); color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none;
}
.cbr-write:hover { filter: brightness(.95); }

/* Stars */
.cbr-stars { display: inline-flex; gap: 1px; line-height: 1; font-size: 18px; }
.cbr-stars .on { color: var(--cbr-star); }
.cbr-stars .off { color: #d9d9de; }

/* Carousel */
.cbr-carousel { position: relative; min-width: 0; }
.cbr-track {
	display: flex; gap: 16px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 4px 2px 12px;
	scrollbar-width: none;
}
.cbr-track::-webkit-scrollbar { display: none; }
.cbr-track:focus-visible { outline: 2px solid var(--cbr-red); outline-offset: 4px; border-radius: 8px; }

.cbr-card {
	flex: 0 0 calc((100% - 32px) / 3);
	scroll-snap-align: start;
	background: var(--cbr-card);
	border: 1px solid var(--cbr-line);
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
	display: flex; flex-direction: column; gap: 8px;
}
.cbr-card header { display: flex; align-items: center; gap: 10px; }
.cbr-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.cbr-initial {
	display: grid; place-items: center;
	background: var(--c); color: #fff; font-weight: 700; font-size: 17px;
}
.cbr-who { display: flex; flex-direction: column; min-width: 0; }
.cbr-who strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbr-who time { font-size: 12px; color: var(--cbr-muted); }
.cbr-src {
	margin-left: auto; flex: none;
	font-size: 11px; font-weight: 700; color: var(--c);
	border: 1px solid var(--c); border-radius: 999px; padding: 2px 8px;
}
.cbr-text {
	margin: 0; font-size: 14px; line-height: 1.5;
	display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.cbr-card.is-open .cbr-text { -webkit-line-clamp: unset; display: block; }
.cbr-more {
	align-self: flex-start; background: none; border: 0; padding: 0; margin: 0;
	color: var(--cbr-muted); font-size: 13px; text-decoration: underline; cursor: pointer;
	text-transform: none; letter-spacing: 0; min-height: 0; line-height: 1.4; font-weight: 400;
}

.cbr-nav {
	position: absolute; top: 50%; transform: translateY(-60%); z-index: 2;
	width: 36px; height: 36px; min-height: 0; border-radius: 50%; margin: 0; padding: 0;
	border: 1px solid var(--cbr-line); background: #fff; color: var(--cbr-ink);
	font-size: 22px; line-height: 1; cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,.12);
	display: grid; place-items: center;
}
.cbr-nav:hover { background: #f6f6f8; }
.cbr-nav[disabled] { opacity: 0; pointer-events: none; }
.cbr-prev { left: -14px; }
.cbr-next { right: -14px; }

@media (max-width: 1000px) {
	.cbr-card { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 700px) {
	.cbr-wrap { grid-template-columns: 1fr; }
	.cbr-chips { flex-direction: row; flex-wrap: wrap; justify-content: center; }
	.cbr-chip-n { margin-left: 4px; }
	.cbr-card { flex-basis: 85%; }
	.cbr-prev { left: -6px; }
	.cbr-next { right: -6px; }
}
@media (prefers-reduced-motion: reduce) {
	.cbr-track { scroll-behavior: auto; }
}
.cbr-wrap.cbr-no-summary { grid-template-columns: minmax(0, 1fr); }
