/* Expandable public rankings, using the tested list layout. */
.public-list { width: 100%; max-width: 1260px; }
.list-mobile-filters { display: none; margin-bottom: 16px; }
.lab-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.lab-filters { position: sticky; top: 24px; padding: 20px; background: #202020; border: 1px solid #333; border-radius: 10px; }
.lab-filter-heading, .lab-results-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.lab-filter-heading h2, .lab-results-heading h2 { font-size: 19px; margin: 0; }
.lab-results-heading p { margin: 0; color: #aaa; font-size: 13px; }
.lab-filters > label, .lab-placement legend { display: block; margin: 18px 0 8px; color: #ccc; font-size: 13px; font-weight: bold; }
.lab-filters input:not([type="range"]), .lab-filters select { width: 100%; min-width: 0; padding: 10px; font: inherit; font-size: 14px; color: #fff; background: #171717; border: 1px solid #393939; border-radius: 6px; color-scheme: dark; }
.lab-filters input:focus-visible, .lab-filters select:focus-visible, .lab-level button:focus-visible, .lab-filters button:focus-visible, .lab-video:focus-visible { outline: 2px solid #ff3b3b; outline-offset: 3px; }
.lab-text-button { padding: 3px; background: transparent; border: 0; color: #ff7171; cursor: pointer; font: inherit; font-size: 13px; }
.lab-placement { border: 0; margin: 0; padding: 0; min-width: 0; }
.lab-range-values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lab-range-values label { color: #aaa; font-size: 12px; }
.lab-range-values input { margin: 5px 0 10px; }
.lab-placement input[type="range"] { width: 100%; margin: 8px 0; accent-color: #ff3b3b; cursor: pointer; }
.lab-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.lab-tag { border: 1px solid #444; padding: 5px 9px; border-radius: 5px; background: #282828; color: #ccc; font: inherit; font-size: 12px; cursor: pointer; transition: color .18s, border-color .18s, background-color .18s; }
.lab-tag:hover { border-color: #888; }
.lab-tag[aria-pressed="true"] { background: #442323; color: #ffb1b1; border-color: #ff3b3b; }
.lab-preview-note { font-size: 12px; line-height: 1.5; color: #999; margin: 14px 0 18px; }
.lab-button { width: 100%; background: #303030; border: 1px solid #484848; color: #fff; border-radius: 6px; padding: 11px; font: inherit; font-size: 13px; cursor: pointer; }
.lab-button:hover { background: #3a3a3a; }
.lab-results { min-width: 0; }
.lab-results .testing-list-grid { grid-template-columns: 1fr; gap: 9px; }
.lab-level { min-width: 0; overflow: hidden; background: #202020; border: 1px solid #383838; border-radius: 8px; transition: border-color .2s; }
.lab-level:hover { border-color: #666; }
.lab-level.is-expanded { border-color: #aa3434; }
.lab-level-toggle { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto 16px; align-items: center; gap: 15px; width: 100%; min-height: 64px; padding: 12px 18px; border: 0; background: #222; color: #fff; text-align: left; font: inherit; cursor: pointer; }
.lab-row-backdrop { position: absolute; z-index: -2; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); object-fit: cover; filter: blur(7px); opacity: .48; pointer-events: none; }
.lab-level-toggle::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(15,15,15,.86), rgba(15,15,15,.70)); pointer-events: none; }
.lab-rank { font-size: 14px; color: #ff7777; font-weight: bold; }
.lab-level-name { font-size: 17px; font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-ppc { font-weight: bold; font-size: 15px; white-space: nowrap; }
.lab-ppc small { color: #bbb; font-size: 10px; font-weight: normal; }
.lab-rating { display: flex; gap: 7px; align-items: center; }
.lab-face { width: 32px; height: 32px; object-fit: contain; flex: none; }
.lab-star-icon { width: 13px; height: 13px; object-fit: contain; }
.lab-stars { display: inline-flex; align-items: center; gap: 3px; color: #f4cd75; font-size: 12px; white-space: nowrap; }
.lab-chevron { display: block; font-size: 20px; color: #ccc; transition: transform .25s; }
.is-expanded .lab-chevron { transform: rotate(180deg); }
.lab-expand { display: grid; grid-template-rows: 0fr; visibility: hidden; opacity: 0; transition: grid-template-rows .28s ease, opacity .22s ease, visibility .28s; }
.is-expanded .lab-expand { grid-template-rows: 1fr; visibility: visible; opacity: 1; }
.lab-expand-inner { min-height: 0; overflow: hidden; }
.lab-level-details { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr); gap: 20px; padding: 20px; border-top: 1px solid #333; }
.lab-detail-thumbnail { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 5px; background: #181818; }
.lab-detail-text h3 { margin: 0 0 12px; font-size: 20px; }
.lab-detail-text dl { margin: 0 0 14px; }
.lab-detail-text dl > div { margin-bottom: 10px; }
.lab-detail-text dt { font-size: 11px; color: #aaa; margin-bottom: 3px; }
.lab-detail-text dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.lab-video { color: #ff8585; text-decoration: none; font-size: 13px; }
.lab-video:hover { text-decoration: underline; }
.lab-muted { color: #aaa; font-size: 12px; line-height: 1.5; }
.lab-level { scroll-margin-top: 20px; }
.lab-player-link { color: #ff9595; text-decoration: none; font-size: 13px; overflow-wrap: anywhere; }
.lab-player-link:hover { text-decoration: underline; }
.lab-player-link:focus-visible { outline: 2px solid #ff3b3b; outline-offset: 3px; }
.lab-player-records { grid-column: 1 / -1; border-top: 1px solid #333; padding-top: 16px; color: #aaa; font-size: 12px; }
.lab-player-records h4 { margin: 0 0 10px; color: #ddd; font-size: 14px; }
.lab-player-record { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 9px 0; }
.lab-player-identity { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.lab-player-identity img { width: 30px; height: 30px; flex: none; border-radius: 50%; object-fit: cover; }
.lab-creator-names .lab-player-identity, .lab-verifier-name .lab-player-identity { vertical-align: middle; }
.lab-creator-names img, .lab-verifier-name img { width: 24px; height: 24px; }
.lab-player-record small { color: #aaa; font-size: 11px; }
.lab-preview-tags { grid-column: 1 / -1; border-top: 1px solid #333; padding-top: 13px; }
.lab-tag-label { font-size: 13px; color: #ccc; }
.lab-tag-label small { margin-left: 5px; color: #999; font-size: 11px; }
.lab-empty { padding: 30px; margin: 0; border: 1px dashed #444; border-radius: 8px; color: #aaa; text-align: center; }
.lab-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 850px) {
    .lab-layout { grid-template-columns: 215px minmax(0, 1fr); gap: 16px; }
    .lab-level-toggle { gap: 9px; padding: 12px; grid-template-columns: 32px minmax(0, 1fr) auto auto 12px; }
    .lab-level-details { grid-template-columns: 1fr; }
    .lab-level-name { font-size: 15px; }
}
@media (max-width: 620px) {
    .list-mobile-filters { display: block; }
    .public-list:not(.filters-open) .lab-filters { display: none; }
    .lab-layout { grid-template-columns: 1fr; }
    .lab-filters { position: static; }
    .lab-level-toggle { gap: 7px; }
    .lab-ppc { font-size: 13px; }
    .lab-face { width: 26px; height: 26px; }
    .lab-rating { gap: 3px; }
    .lab-results-heading { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .lab-expand, .lab-chevron, .lab-level, .lab-tag { transition: none; }
}
