/* Jamming.Live Ratings: the public aggregate, the star control and the remove confirmation. Builds on jl-auth.css tokens. */
.rt-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Aggregate: stars partly filled to the displayed average, then the number and count. */
.rt-aggregate { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 6px 0; font-size: 1.05rem; color: var(--ink); }
.rt-stars { position: relative; display: inline-block; font-size: 1.35rem; line-height: 1; letter-spacing: 0.06em; white-space: nowrap; }
.rt-stars-base { color: #5d5d6b; }
.rt-stars-fill { position: absolute; top: 0; left: 0; width: var(--rt-fill, 0%); overflow: hidden; color: #f5c04a; }
.rt-aggregate[data-count="0"] .rt-stars { display: none; }
.rt-aggregate[data-count="0"] .rt-text { color: var(--ink-soft); }

/* The control. Stars are real buttons (a radio group) with a clear focus ring. */
.rt-control { margin: 4px 0 10px; }
.rt-signin, .rt-note, .rt-label, .rt-current, .rt-status { margin: 4px 0; }
.rt-note { color: var(--ink-soft); }
.rt-label { font-weight: 700; }
.rt-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.rt-star-group, .rt-fallback { display: inline-flex; gap: 2px; border: 0; padding: 0; margin: 0; }
.rt-fallback legend { font-weight: 700; padding: 0; margin: 0 0 4px; }
.rt-fallback { display: flex; flex-wrap: wrap; align-items: center; }
.rt-star { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #8a8a96; font-size: 2rem; line-height: 1; cursor: pointer; }
.rt-star.is-on { color: #f5c04a; }
.rt-star:hover { background: rgba(255, 255, 255, 0.08); }
.rt-star:focus-visible, .rt-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rt-star-group[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.rt-link { background: none; border: 0; padding: 4px; color: var(--accent-ink); text-decoration: underline; cursor: pointer; font: inherit; }

/* Remove confirmation. */
.rt-dialog { max-width: min(92vw, 420px); padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); }
.rt-dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
.rt-dialog h2 { margin: 0 0 8px; font-size: 1.25rem; }
.rt-dialog p { margin: 0 0 14px; color: var(--ink-soft); }
.rt-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rt-dialog-actions .btn { width: auto; }

@media (prefers-reduced-motion: reduce) { .rt-star { transition: none; } }
