/* The reference leaderboard's table and its creator-entry presentation. */
.bml-content-page .main-content.creator-page { width: 100%; max-width: none; padding: 32px 16px; }
.creator-page [hidden] { display: none !important; }
.creator-leaderboard-tabs { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid #343438; background: #141416; }
.creator-leaderboard-tabs > span { display: flex; align-items: center; min-height: 52px; padding: 12px 16px; border-bottom: 2px solid #818cf8; color: #a5b4fc; font-size: 14px; font-weight: 500; }
.creator-leaderboard-tabs > p { margin: 0 16px; color: var(--text-muted); font-size: 13px; }
.creator-leaderboard-panel { margin-top: 24px; overflow: hidden; border-radius: 16px; background: #151517; }
.creator-leaderboard-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 74px; padding: 16px 24px; }
.creator-leaderboard-heading h1 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.4; }
.creator-leaderboard-search { display: flex; align-items: center; gap: 10px; width: 286px; padding: 8px 12px; border: 1px solid #3f3f46; border-radius: 6px; color: var(--text-muted); background: #252529; }
.creator-leaderboard-search svg { width: 16px; height: 16px; }
.creator-leaderboard-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; color: var(--text); background: transparent; font: inherit; font-size: 14px; line-height: 24px; }
.creator-leaderboard-search:focus-within { outline: 2px solid #6366f1; outline-offset: 1px; }
.creator-statistics { padding: 12px 24px; color: var(--text-muted); font-size: 13px; border-top: 1px solid #27272a; }
.creator-leaderboard-table { width: 100%; border-collapse: collapse; table-layout: fixed; color: #e4e4e7; font-size: 14px; }
.creator-leaderboard-table th { height: 50px; padding: 12px 24px; background: #35353b; color: #f8fafc; text-align: left; font-weight: 600; }
.creator-leaderboard-table th:nth-child(1) { width: 12%; }
.creator-leaderboard-table th:nth-child(2) { width: 30%; }
.creator-leaderboard-table th:nth-child(3) { width: 16%; text-align: center; }
.creator-leaderboard-table th:nth-child(4) { width: 20%; text-align: center; }
.creator-leaderboard-table th:nth-child(5) { width: 22%; }
.creator-leaderboard-table th button { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.creator-sort-arrow { color: #a5b4fc; }
.creator-leaderboard-table td { height: 66px; padding: 16px 24px; border-bottom: 1px solid #27272a; }
.creator-leaderboard-table td:nth-child(3), .creator-leaderboard-table td:nth-child(4) { text-align: center; }
.creator-leaderboard-table td:last-child { text-align: right; }
.creator-leaderboard-table tbody tr:hover { background: #1c1c20; }
.creator-rank { display: inline-grid; place-items: center; min-width: 32px; height: 32px; color: #a1a1aa; font-weight: 600; }
.creator-rank--1, .creator-rank--2, .creator-rank--3 { border-radius: 50%; color: #18181b; }
.creator-rank--1 { background: #eab308; }
.creator-rank--2 { background: #cbd5e1; }
.creator-rank--3 { background: #b45309; color: #fff; }
.leaderboard-creator-name { color: #f8fafc; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.leaderboard-creator-name:hover { color: #a5b4fc; text-decoration: underline; }
.creator-count-pill, .creator-notes-pill { display: inline-block; max-width: 100%; padding: 6px 12px; border-radius: 999px; background: #3f3f46; font-weight: 600; white-space: nowrap; }
.creator-count-pill { color: #facc15; }
.creator-notes-pill { color: #6ee7b7; }
.creator-view-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; padding: 6px 14px; border-radius: 6px; color: #fff; background: #4f46e5; font-size: 13px; line-height: 20px; text-decoration: none; white-space: nowrap; }
.creator-view-link svg { width: 16px; height: 16px; }
.creator-view-link:hover { background: #4338ca; }
.creator-page :is(a, button):focus-visible { outline: 2px solid #a5b4fc; outline-offset: 4px; }
.creator-page-status { padding: 64px 24px; color: var(--text-muted); text-align: center; }
.creator-page-status h2 { margin-bottom: 12px; color: var(--text); font-size: 24px; }
.creator-page-status .retry-btn { margin-top: 20px; }
.creator-profile-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.creator-profile-heading h1 { min-width: 0; margin: 0; font-size: 24px; overflow-wrap: anywhere; }
#creatorProfileName { color: #facc15; }
.creator-profile-back { display: inline-flex; flex-shrink: 0; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 6px; color: #e4e4e7; background: #3f3f46; font-size: 14px; text-decoration: none; }
#creatorProfileStatus { margin: 12px 0 24px; color: var(--text-muted); font-size: 14px; }
.creator-profile-entries { display: flex; flex-direction: column; gap: 32px; }
.creator-midi-card { position: relative; isolation: isolate; display: flex; min-width: 0; height: 192px; overflow: hidden; border: 1px solid #3f3f46; border-radius: 24px; background: #18181b; color: #fff; }
.creator-midi-background { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.creator-midi-card:has(.creator-midi-background)::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #09090b22, #09090b99); }
.creator-midi-media { position: relative; display: grid; flex: 0 0 240px; place-items: center; overflow: hidden; color: #71717a; font-size: 40px; text-decoration: none; }
.creator-midi-thumbnail { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.creator-midi-media:has(.creator-midi-thumbnail) .creator-midi-placeholder { visibility: hidden; }
.creator-midi-content { flex: 1; min-width: 0; padding: 16px; }
.creator-midi-content h2 { display: flex; gap: 10px; margin: 0 0 4px; font-size: 30px; font-weight: 700; line-height: 1.375; text-shadow: 0 0 11px #000; }
.creator-midi-content h2 span { flex-shrink: 0; }
.creator-midi-content h2 a { min-width: 0; overflow: hidden; color: inherit; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.creator-midi-content h2 a:hover { color: #a5b4fc; }
.creator-midi-content p { color: #e4e4e7; font-size: 18px; text-shadow: 0 0 4px #000; }
.creator-midi-content .creator-midi-blacker { font-size: 12px; }
.creator-midi-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.creator-midi-badges span { padding: 2px 12px; border: 1px solid #818cf880; border-radius: 999px; color: #e0e7ff; background: #4f46e5cc; font-size: 13px; line-height: 20px; }
.creator-midi-numbers { display: flex; flex-direction: column; flex-shrink: 0; align-items: end; gap: 4px; min-width: 0; max-width: 33%; padding: 16px 16px 48px 0; text-align: right; text-shadow: 0 0 11px #000; }
.creator-midi-numbers strong { font-size: 30px; line-height: 1.2; }
.creator-midi-numbers > span { font-size: 24px; font-weight: 600; }
.creator-midi-numbers small { max-width: 100%; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.creator-midi-details { position: absolute; right: 16px; bottom: 16px; color: #e4e4e7; font-size: 14px; text-decoration: none; }
@media (max-width: 767px) {
    .bml-content-page .main-content.creator-page { padding: 16px 12px; }
    .creator-leaderboard-tabs { flex-wrap: wrap; }
    .creator-leaderboard-tabs > p { margin: 8px 16px; }
    .creator-leaderboard-heading { align-items: stretch; flex-direction: column; gap: 12px; padding: 16px; }
    .creator-leaderboard-search { width: 100%; }
    .creator-leaderboard-table { font-size: 12px; }
    .creator-leaderboard-table th, .creator-leaderboard-table td { padding: 12px 8px; }
    .creator-leaderboard-table th:first-child { width: 12%; }
    .creator-leaderboard-table th:nth-child(2) { width: 31%; }
    .creator-leaderboard-table th:nth-child(3) { width: 16%; }
    .creator-leaderboard-table th:nth-child(4) { width: 24%; }
    .creator-leaderboard-table th:last-child { width: 17%; }
    .creator-count-pill, .creator-notes-pill { padding: 5px 7px; font-size: 11px; }
    .creator-rank { min-width: 26px; height: 26px; }
    .creator-view-link { padding: 6px 8px; font-size: 0; }
    .creator-view-link svg { width: 17px; height: 17px; }
    .creator-statistics { padding-inline: 16px; }
    .creator-midi-card { height: auto; min-height: 230px; flex-wrap: wrap; }
    .creator-midi-media { position: absolute; inset: 0; z-index: -1; }
    .creator-midi-thumbnail { display: none; }
    .creator-midi-card:has(.creator-midi-background)::after { background: #09090b80; }
    .creator-midi-content { flex-basis: 100%; padding: 20px 16px 8px; }
    .creator-midi-content h2 { font-size: 26px; }
    .creator-midi-content p { font-size: 16px; }
    .creator-midi-badges { margin-top: 16px; gap: 5px; }
    .creator-midi-badges span { padding: 2px 8px; font-size: 11px; }
    .creator-midi-numbers { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: start; max-width: none; gap: 12px; padding: 0 16px 45px; }
    .creator-midi-numbers strong { font-size: 22px; }
    .creator-midi-numbers > span { font-size: 18px; }
    .creator-midi-numbers small { font-size: 14px; }
}
[data-theme="light"] .creator-leaderboard-tabs, [data-theme="light"] .creator-leaderboard-panel, [data-theme="light"] .creator-leaderboard-table tbody tr { background: var(--bg-surface); }
[data-theme="light"] .creator-leaderboard-table { color: var(--text); }
[data-theme="light"] .creator-leaderboard-table th { color: var(--text); background: var(--bg-surface-2); }
[data-theme="light"] .leaderboard-creator-name { color: var(--text); }
[data-theme="light"] .creator-leaderboard-search { background: var(--bg-input); }
