/* Release Rating */
.releaserating { text-align: center; }
.releaserating.rr-custom-bg { background: var(--rr-bg) !important; }
.releaserating .rr-title { text-align: center; }
.releaserating.rr-custom-text .rr-title,
.releaserating.rr-custom-text .rr-note,
.releaserating.rr-custom-text .rr-summary,
.releaserating.rr-custom-text .rr-user-vote,
.releaserating.rr-custom-text .rr-message { color: var(--rr-text) !important; }
.releaserating .rr-note { font-size: 0.8em; font-weight: normal; text-transform: none; }

.rr-row { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; }
.rr-icon { flex: 0 0 auto; width: auto; height: auto; max-width: 28%; object-fit: contain; }
.rr-rating { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.rr-summary { font-size: 1.1em; }
.rr-user-vote, .rr-message { font-size: 0.9em; opacity: 0.85; }
.rr-user-vote:empty, .rr-message:empty { display: none; }

/* Stars: grey row with the coloured row on top, cut at the average */
.rr-stars { position: relative; display: inline-block; font-size: 28px; line-height: 1; letter-spacing: 2px; white-space: nowrap; color: #8a8a8a; }
.rr-stars-empty { opacity: 0.45; }
.rr-stars-full { position: absolute; top: 0; left: 0; overflow: hidden; color: var(--rr-star, #f5b301); }
.rr-hits { position: absolute; inset: 0; display: flex; }
.rr-hit { flex: 1 1 20%; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.rr-hit:focus-visible { outline: 2px solid var(--rr-star, #f5b301); outline-offset: 2px; }
.rr-rating.rr-busy { opacity: 0.6; pointer-events: none; }
.rr-stars.rr-small { font-size: 13px; letter-spacing: 1px; vertical-align: -1px; }

/* Topic list, author column, profile */
.rr-list { display: inline-block; margin-left: 6px; white-space: nowrap; font-size: 0.9em; }
.rr-author { margin-top: 3px; }
.rr-profile { text-align: left; }
.rr-profile .rr-stars { font-size: 20px; vertical-align: middle; }

/* Panel in the narrow author column */
.rr-in-profile { margin-top: 8px; }
.rr-in-profile .releaserating { margin: 0; padding: 6px 4px; }
.rr-in-profile .rr-title { font-size: 1em; }
.rr-in-profile .rr-row { gap: 4px !important; }
.rr-in-profile .rr-icon { max-height: 22px !important; max-width: 22%; }
.rr-in-profile .rr-stars { font-size: 20px; letter-spacing: 1px; }
.rr-in-profile .rr-rating { flex-direction: column; gap: 2px; }

@media (max-width: 700px) {
	.rr-row { gap: 8px !important; }
	.rr-icon { max-height: 28px !important; }
	.rr-stars { font-size: 24px; }
}

/* Rankings page */
.rr-top-filter { margin: 0 0 10px; }
.rr-top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 0 14px; }
.rr-top-grid .rr-top-box { margin-bottom: 14px; }
.rr-top-box li.header dl, .rr-top-box li.header dt { width: 100%; }
.rr-top-box li.header .list-inner { width: auto; margin-right: 0; padding-left: 8px; }
.rr-top-row { display: flex; align-items: center; gap: 10px; padding: 5px 8px; }
.rr-top-rank { flex: 0 0 26px; text-align: right; font-size: 1.3em; font-weight: bold; opacity: 0.6; }
.rr-top-main { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.rr-top-score { flex: 0 0 auto; text-align: right; white-space: nowrap; }
.rr-top-meta { font-size: 0.9em; opacity: 0.8; }
.rr-top-empty { padding: 8px 10px; font-style: italic; }
.rr-top-note { font-size: 0.9em; opacity: 0.8; }
@media (max-width: 700px) { .rr-top-grid { grid-template-columns: 1fr; } }
