/* Places 4–10: one surface per participant, without an enclosing panel.
   Keep the existing table IDs, semantic grouping and live update nodes.
   Generated design CSS loads after this file and can style each card. */
#rating-page #rating-table {
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    border-spacing: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
#rating-page #rating-table thead { display: block; }
#rating-page #rating-table thead tr,
#rating-page #rating-table .lb-row {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) minmax(88px, auto) !important;
    align-items: center !important;
    column-gap: 16px !important;
}
#rating-page #rating-table thead tr { padding: 0 20px 14px; }
#rating-page #rating-table thead th {
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
}
#rating-page #rating-table thead th:last-child { text-align: right; }
#rating-page #rating-body {
    display: grid !important;
    gap: 12px !important;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
#rating-page #rating-table .lb-row {
    position: relative;
    min-width: 0;
    min-height: 96px !important;
    margin: 0 !important;
    padding: 18px 20px !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 18px !important;
    background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(8, 10, 14, .94)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 10px 28px rgba(0, 0, 0, .12) !important;
    overflow: visible !important;
}
/* The legacy mobile table assigns medal colors to its first three rows.
   Those rows now represent places 4–6; medals belong to the podium only. */
#rating-page #rating-table .lb-row::before { content: none; }
#rating-page #rating-table .lb-row > td {
    display: block;
    min-width: 0;
    width: auto !important;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
#rating-page #rating-table .lb-row > .lb-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
#rating-page #rating-table .lb-rank .iba-rating-delta { margin: 0; }
#rating-page #rating-table .lb-row > .lb-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}
#rating-page #rating-table .lb-fighter-name {
    max-width: 100%;
    margin: 0 !important;
    line-height: 1.15 !important;
    white-space: normal;
    overflow-wrap: anywhere;
}
#rating-page #rating-table .lb-fighter-meta {
    display: inline-flex;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px !important;
    min-width: 0;
    min-height: 0;
    margin: 0;
}
#rating-page #rating-table .lb-cat {
    max-width: 100%;
    margin: 0;
    white-space: normal;
    border-color: rgba(255, 255, 255, .12) !important;
    background: rgba(255, 255, 255, .04) !important;
}
/* One category palette on desktop, tablet and phone. */
#rating-page #rating-table .lb-cat-light { color: #6ee7a8 !important; }
#rating-page #rating-table .lb-cat-middle { color: #ffd24d !important; }
#rating-page #rating-table .lb-cat-heavy { color: #ff5a5a !important; }
#rating-page #rating-table .lb-cat[hidden] { display: none !important; }
.public-site-v2 .iba-rating-outside {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    max-width: 100%;
    min-height: 22px;
    padding: 3px 7px;
    border: 1px solid rgba(165, 168, 180, .25);
    border-radius: 6px;
    background: rgba(165, 168, 180, .06);
    color: #b8bcc7;
    font: 800 10px/1.2 var(--font-body, Arial, sans-serif);
    letter-spacing: .04em;
    white-space: nowrap;
}
.public-site-v2 .iba-rating-outside[hidden] { display: none !important; }
.public-site-v2 .public-podium-card { display: flex; flex-direction: column; }
.public-site-v2 .public-podium-card > .iba-rating-outside,
.public-site-v2 .home-ranking-row .iba-rating-outside { margin-top: 8px; }
#rating-page #rating-table .lb-city {
    flex: 1 1 200px;
    min-width: 0;
    margin: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}
#rating-page #rating-table .lb-row > .lb-score {
    align-self: center;
    color: #fff !important;
    font-size: 34px !important;
    line-height: 1 !important;
}
#rating-page #rating-table .lb-score .iba-rating-value { font-size: inherit; }
@media (hover: hover) {
    #rating-page #rating-table .lb-row:hover {
        border-color: rgba(242, 13, 50, .28) !important;
        background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(20, 10, 14, .94)) !important;
    }
}
@media (max-width: 768px) {
    #rating-page #rating-table thead { display: none; }
    #rating-page #rating-table .lb-row {
        grid-template-columns: 38px minmax(0, 1fr) 66px !important;
        column-gap: 12px !important;
        padding: 16px 14px !important;
    }
    #rating-page #rating-table .lb-row > .lb-name { flex-direction: column; align-items: flex-start; }
    #rating-page #rating-table .lb-rank-badge { min-width: 36px; height: 36px; padding: 0 6px; border-radius: 12px; }
    #rating-page #rating-table .lb-fighter-name { font-size: 18px !important; }
    #rating-page #rating-table .lb-city { flex: 0 1 auto; }
    #rating-page #rating-table .lb-row > .lb-score { font-size: 28px !important; }
}
@media (max-width: 380px) {
    #rating-page #rating-table .lb-row {
        grid-template-columns: 32px minmax(0, 1fr) 54px !important;
        column-gap: 8px !important;
        padding: 14px 10px !important;
    }
    #rating-page #rating-table .lb-rank-badge { min-width: 32px; height: 32px; }
    #rating-page #rating-table .lb-fighter-name { font-size: 16px !important; }
    #rating-page #rating-table .lb-row > .lb-score { font-size: 24px !important; }
}
