* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #fff; font: 16px/1.5 -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: #111827; overflow-x: hidden; }
/* 188 = iframe height; min-height reserves it from first paint so the quote swap never resizes.
   Height follows content and the card is centered at max 480px, so wide embeds leave no dead space. */
.embed-card { min-height: 188px; max-width: 480px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.embed-base { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 8px; }
/* Two layered rows: muted base, amber fill clipped to the average (width set by script). */
.embed-stars { position: relative; display: inline-block; font-size: 20px; letter-spacing: 2px; white-space: nowrap; line-height: 1.2; }
.embed-stars-base { color: #d1d5db; }
.embed-stars-fill { position: absolute; left: 0; top: 0; width: 0; overflow: hidden; color: #b45309; }
.embed-avg { font-size: 16px; font-weight: 600; color: #111827; }
.embed-label { font-size: 16px; color: #111827; }
.embed-live { padding-block: 8px; }
.embed-live .embed-stars { font-size: 16px; }

.embed-carousel { display: flex; flex-direction: column; width: 100%; min-width: 0; }
.embed-track { display: flex; min-height: 0; min-width: 0; width: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.embed-track::-webkit-scrollbar { display: none; }
.embed-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; }
.embed-rating { color: #b45309; letter-spacing: 2px; }
.embed-quote { margin: 4px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.embed-attr { font-size: 13px; color: #4b5563; }
.embed-controls { display: flex; justify-content: center; align-items: center; gap: 8px; }
.embed-btn { min-width: 44px; min-height: 44px; border: 0; background: none; font: inherit; font-size: 14px; color: #1d4ed8; cursor: pointer; }
.embed-btn:disabled { opacity: .4; cursor: default; }
.embed-count { font-size: 13px; color: #4b5563; }
.embed-track:focus-visible, .embed-btn:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) { .embed-track { scroll-behavior: smooth; } }
@media (max-width: 279px) { .embed-count { display: none; } }
