.ranking-hero .checagem-event-hero__title {
    max-width: 980px;
    text-wrap: balance;
}

.ranking-public-main {
    position: relative;
    z-index: 20;
    width: calc(100% - 32px);
    max-width: 1280px;
    margin: -48px auto 0;
    padding-bottom: 64px;
}

.ranking-controls-card {
    box-sizing: border-box;
    min-width: 0;
    padding: 22px;
    margin-bottom: 28px;
}

.ranking-controls-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ranking-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.ranking-action,
.ranking-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    border: 1px solid #e1e5ec;
    border-radius: 9px;
    color: #475467;
    background: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .045em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.ranking-action { padding: 9px 13px; }
.ranking-action .material-icons,
.ranking-search-button .material-icons { font-size: 18px; }

.ranking-action:hover {
    border-color: #c8c2ff;
    color: #3000f0;
    background: #f7f5ff;
}

.ranking-control-panel {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eceef4;
}

.ranking-team-search { max-width: 620px; }

.ranking-category-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 12px;
}

.ranking-search-button {
    min-height: 46px;
    padding: 10px 18px;
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, #3000f0, #5529ff);
    box-shadow: 0 7px 20px rgba(48, 0, 240, .22);
}

.ranking-search-button:hover { background: linear-gradient(135deg, #2600c9, #461ce6); }
.ranking-search-button:disabled { cursor: wait; opacity: .7; }

.ranking-results-card {
    overflow: hidden;
    padding: 24px;
    border: 1px solid #e7e9ef;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(15, 23, 42, .08);
}

.ranking-empty-state {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #98a2b3;
    text-align: center;
}

.ranking-empty-state.hidden { display: none; }
.ranking-empty-state .material-icons { font-size: 34px; }
.ranking-empty-state p { margin: 0; font-size: 13px; font-weight: 600; }

.ranking-results-card .select2-container { min-width: 0; }

.ranking-category-result-header {
    margin: 0 0 18px;
    padding: 2px 2px 14px;
    border-bottom: 1px solid #eceef4;
}

.ranking-category-result-header h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    margin: 0;
    color: #1d2939;
    font-family: 'Saira Condensed', 'Inter', sans-serif;
    font-size: clamp(1.08rem, 1.5vw, 1.22rem);
    font-style: italic;
    font-weight: 800;
    letter-spacing: .005em;
    line-height: 1.08;
    text-transform: uppercase;
}

.ranking-category-result-header small {
    color: #667085;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.ranking-athlete-modal {
    background: rgba(9, 14, 28, .74);
    backdrop-filter: blur(7px);
}

.ranking-athlete-dialog {
    display: flex;
    width: 100%;
    max-width: 760px;
    max-height: min(88vh, 820px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(10, 17, 35, .32);
}

.ranking-athlete-header {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 18px;
    min-height: 148px;
    padding: 24px 24px 22px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(128deg, #121a32 0%, #17254d 58%, #28118c 100%);
}

.ranking-athlete-header::after {
    position: absolute;
    right: -54px;
    bottom: -98px;
    width: 230px;
    height: 230px;
    border: 42px solid rgba(255, 255, 255, .045);
    border-radius: 50%;
    content: '';
    pointer-events: none;
}

.ranking-athlete-photo {
    position: relative;
    z-index: 1;
    display: flex;
    width: 92px;
    height: 92px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, .92);
    border-radius: 18px;
    color: #fff;
    background: rgba(255, 255, 255, .13);
    box-shadow: 0 12px 28px rgba(4, 9, 23, .28);
    font-family: 'Saira Condensed', 'Inter', sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: .04em;
}

.ranking-athlete-photo img,
.ranking-athlete-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-athlete-identity { position: relative; z-index: 1; min-width: 0; }

.ranking-athlete-kicker {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, .64);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ranking-athlete-identity h3 {
    margin: 0;
    color: #fff;
    font-family: 'Saira Condensed', 'Inter', sans-serif;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    font-style: italic;
    font-weight: 800;
    letter-spacing: .005em;
    line-height: 1.04;
    text-transform: uppercase;
}

.ranking-athlete-team {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: rgba(255, 255, 255, .88);
    font-size: 12px;
    font-weight: 700;
}

.ranking-athlete-team-logo {
    display: flex;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 50%;
    color: #27355b;
    background: #fff;
    font-size: 8px;
    font-weight: 900;
}

.ranking-athlete-category {
    margin: 7px 0 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .62);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .035em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.ranking-athlete-close {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    align-self: start;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
    color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .08);
    transition: color .2s ease, background .2s ease;
}

.ranking-athlete-close:hover { color: #fff; background: rgba(255, 255, 255, .15); }
.ranking-athlete-close .material-icons { font-size: 20px; }

.ranking-athlete-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 76px;
    padding: 0 24px;
    border-bottom: 1px solid #e8ebf1;
    background: #f8f9fc;
}

.ranking-athlete-stat {
    position: relative;
    display: grid;
    grid-template-columns: 8px 1fr;
    align-content: center;
    column-gap: 8px;
    padding: 14px 18px;
    border-right: 1px solid #e4e7ec;
}

.ranking-athlete-stat:first-child { padding-left: 0; }
.ranking-athlete-stat:last-child { padding-right: 0; border-right: 0; }

.ranking-athlete-stat__mark {
    grid-row: 1 / 3;
    width: 7px;
    height: 7px;
    align-self: center;
    border-radius: 50%;
    background: #98a2b3;
}

.ranking-athlete-stat__mark.is-gold { background: #c89c31; }
.ranking-athlete-stat__mark.is-silver { background: #8d96a5; }
.ranking-athlete-stat__mark.is-bronze { background: #a96d45; }

.ranking-athlete-stat__label {
    color: #7a8496;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ranking-athlete-stat strong {
    color: #263146;
    font-family: 'Saira Condensed', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.ranking-athlete-stat.is-total { display: flex; flex-direction: column; justify-content: center; }
.ranking-athlete-stat.is-total strong { color: #3000f0; font-size: 23px; }
.ranking-athlete-stat.is-total small { font-family: 'Inter', sans-serif; font-size: 9px; text-transform: uppercase; }

.ranking-athlete-events {
    min-height: 190px;
    flex: 1;
    overflow-y: auto;
    padding: 22px 24px 24px;
    background: #fff;
}

.ranking-athlete-section-title {
    margin: 0 0 12px;
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.ranking-athlete-event-list { display: grid; gap: 10px; }

.ranking-athlete-event {
    position: relative;
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    min-height: 86px;
    padding: 14px 17px 14px 0;
    overflow: hidden;
    border: 1px solid #e8ebf1;
    border-radius: 12px;
    background: #fbfcfe;
}

.ranking-athlete-event.is-discarded { opacity: .58; background: #f7f7f8; }
.ranking-athlete-event__accent { align-self: stretch; border-radius: 0 4px 4px 0; background: #c5cad3; }
.ranking-athlete-event__accent.is-gold { background: #c89c31; }
.ranking-athlete-event__accent.is-silver { background: #8d96a5; }
.ranking-athlete-event__accent.is-bronze { background: #a96d45; }
.ranking-athlete-event__content { min-width: 0; }

.ranking-athlete-event__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
    color: #8b94a5;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ranking-athlete-discarded { color: #9a6b24; }

.ranking-athlete-event h5 {
    margin: 0;
    overflow: hidden;
    color: #243047;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.ranking-athlete-event-result {
    margin: 4px 0 0;
    color: #667085;
    font-size: 10px;
    font-weight: 700;
}

.ranking-athlete-event-result.is-gold { color: #8a681c; }
.ranking-athlete-event-result.is-silver { color: #667085; }
.ranking-athlete-event-result.is-bronze { color: #8b5838; }

.ranking-athlete-event__points {
    min-width: 62px;
    text-align: right;
}

.ranking-athlete-event__points strong {
    display: block;
    color: #3000f0;
    font-family: 'Saira Condensed', 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: .9;
}

.ranking-athlete-event__points span {
    color: #98a2b3;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ranking-athlete-footer {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 24px;
    border-top: 1px solid #e8ebf1;
    background: #fff;
}

.ranking-athlete-total-note { color: #7b8493; font-size: 10px; font-weight: 600; }
.ranking-athlete-total-note strong { color: #4d5667; }

.ranking-athlete-dismiss {
    min-height: 38px;
    padding: 9px 20px;
    border: 1px solid #d9dee8;
    border-radius: 9px;
    color: #344054;
    background: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ranking-athlete-dismiss:hover { border-color: #c7c0ff; color: #3000f0; background: #f8f7ff; }

.ranking-athlete-empty {
    display: flex;
    min-height: 170px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #98a2b3;
    text-align: center;
}

.ranking-athlete-empty.is-error { color: #b54747; }
.ranking-athlete-empty .material-icons { font-size: 30px; }
.ranking-athlete-empty p { margin: 0; font-size: 12px; font-weight: 600; }

.ranking-athlete-loading-line {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    align-items: center;
}

.ranking-athlete-loading-line span {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e8ebf1, #f7f8fa, #e8ebf1);
    background-size: 200% 100%;
    animation: ranking-loading 1.3s linear infinite;
}

@keyframes ranking-loading { to { background-position: -200% 0; } }

@media (max-width: 980px) {
    .ranking-controls-head { align-items: stretch; flex-direction: column; }
    .ranking-actions { justify-content: flex-start; }
    .ranking-category-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ranking-search-button { grid-column: 1 / -1; justify-self: end; }
}

@media (max-width: 767px) {
    .ranking-public-main {
        width: calc(100% - 24px);
        margin-top: -38px;
        padding-bottom: 44px;
    }

    .ranking-controls-card { padding: 15px; margin-bottom: 20px; }
    .ranking-view-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ranking-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
    .ranking-action { min-width: 0; padding-inline: 6px; font-size: 9px; }
    .ranking-control-panel { margin-top: 15px; padding-top: 15px; }
    .ranking-team-search { max-width: none; }
    .ranking-results-card { padding: 15px; border-radius: 18px; }

    .ranking-athlete-dialog { max-height: 92vh; border-radius: 17px; }
    .ranking-athlete-header { grid-template-columns: 72px minmax(0, 1fr) 34px; gap: 13px; min-height: 126px; padding: 19px 16px; }
    .ranking-athlete-photo { width: 72px; height: 72px; border-radius: 14px; font-size: 21px; }
    .ranking-athlete-identity h3 { font-size: 1.35rem; }
    .ranking-athlete-category { max-width: 100%; font-size: 9px; }
    .ranking-athlete-summary { grid-template-columns: repeat(2, 1fr); padding: 0 16px; }
    .ranking-athlete-stat { min-height: 62px; padding: 11px 13px; }
    .ranking-athlete-stat:nth-child(2) { border-right: 0; }
    .ranking-athlete-stat:nth-child(-n+2) { border-bottom: 1px solid #e4e7ec; }
    .ranking-athlete-stat:nth-child(3) { padding-left: 0; }
    .ranking-athlete-events { padding: 18px 16px; }
    .ranking-athlete-event { gap: 11px; padding-right: 13px; }
    .ranking-athlete-event h5 { white-space: normal; }
    .ranking-athlete-footer { padding: 12px 16px; }
}

@media (max-width: 520px) {
    .ranking-category-form { grid-template-columns: 1fr; }
    .ranking-search-button { grid-column: 1; width: 100%; }
    .ranking-action { flex-direction: column; gap: 3px; min-height: 52px; }
    .ranking-action .material-icons { font-size: 17px; }
    .ranking-athlete-modal { padding: 8px; }
    .ranking-athlete-header { grid-template-columns: 62px minmax(0, 1fr) 30px; gap: 11px; padding: 16px 13px; }
    .ranking-athlete-photo { width: 62px; height: 62px; }
    .ranking-athlete-team { margin-top: 6px; }
    .ranking-athlete-team-logo { width: 22px; height: 22px; flex-basis: 22px; }
    .ranking-athlete-category { font-size: 8px; }
    .ranking-athlete-event__points { min-width: 50px; }
    .ranking-athlete-event__points strong { font-size: 21px; }
    .ranking-athlete-total-note { max-width: 62%; }
}

@media (prefers-reduced-motion: reduce) {
    .ranking-action,
    .ranking-search-button { transition: none; }
}
