.rb {
    background: #0b1220;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    color: #e6edf7;
    color-scheme: dark;
}

.rb-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rb-field-search {
    flex: 1;
    min-width: 190px;
}

.rb-field label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8fa4c6;
}

.rb-select,
.rb-search {
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    color: #e6edf7;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}

.rb-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-image: linear-gradient(45deg, transparent 50%, #8fa4c6 50%), linear-gradient(135deg, #8fa4c6 50%, transparent 50%);
    background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.rb-select-lg {
    min-width: 210px;
    font-weight: 600;
    font-size: 15.5px;
    color: #ffffff;
}

.rb-select:focus,
.rb-search:focus {
    outline: none;
    border-color: var(--bright-orange);
}

.rb-search {
    width: 100%;
}

.rb-search::placeholder {
    color: #5f77a0;
}

.rb-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rb-pill {
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: transparent;
    color: #8fa4c6;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rb-pill:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
}

.rb-pill.on {
    background: var(--bright-orange);
    border-color: var(--bright-orange);
    color: #14100a;
    font-weight: 700;
}

.rb-scroll {
    overflow-x: auto;
}

.rb-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.rb-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #101a2b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    padding: 10px 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8fa4c6;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.rb-table thead th.rb-c-rank,
.rb-table thead th.rb-c-bye {
    text-align: center;
}

.rb-table thead th.sorted {
    color: var(--bright-orange);
}

.rb-c-exp {
    min-width: 132px;
    text-align: center;
}

.rb-exp-h {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.rb-av {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.rb-av-i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 700;
    color: #8fa4c6;
}

.rb-exp-t {
    min-width: 0;
}

.rb-exp-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #e6edf7;
    white-space: nowrap;
}

.rb-exp-date {
    display: block;
    margin-top: 1px;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #5f77a0;
}

.rb-table tbody td {
    padding: 9px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    vertical-align: middle;
    background: #0b1220;
    font-size: 1rem;
    color: #d8e3f7;
}

.rb-table tbody tr:hover td {
    background: #121c2e;
}

.rb-table tbody td.rb-c-exp {
    text-align: center;
}

.rb-c-rank {
    width: 52px;
    color: #8fa4c6;
    font-weight: 700;
}

.rb-c-bye {
    width: 56px;
    color: #5f77a0;
    font-size: 0.9rem;
}

.rb-c-player {
    text-align: left;
    min-width: 210px;
}

.rb-who {
    display: flex;
    align-items: center;
    gap: 11px;
}

.rb-photo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rb-photo-fb {
    object-fit: contain;
    padding: 6px;
}

.rb-photo-x {
    display: block;
}

.rb-name {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.25;
    white-space: nowrap;
    color: #ffffff;
}

.rb-name a {
    color: #ffffff;
    text-decoration: none;
}

.rb-name a:hover {
    color: var(--bright-orange);
}

.rb-rookie {
    display: inline-block;
    margin-left: 7px;
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(66, 244, 176, 0.16);
    color: var(--aqua);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.rb-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 3px;
}

.rb-logo {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.rb-pos {
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.08);
    color: #8fa4c6;
}

.rb-pos-QB { background: rgba(234, 78, 61, 0.18); color: #ff8b7d; }
.rb-pos-RB { background: rgba(66, 244, 176, 0.16); color: var(--aqua); }
.rb-pos-WR { background: rgba(61, 165, 234, 0.18); color: #6fc2ff; }
.rb-pos-TE { background: rgba(255, 165, 21, 0.18); color: var(--bright-orange); }
.rb-pos-K  { background: rgba(139, 61, 255, 0.2); color: #b98cff; }
.rb-pos-DST { background: rgba(143, 164, 198, 0.18); color: #b6c6e0; }

.rb-team {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #5f77a0;
}

.rb-none {
    color: #3c527a;
}

.rb-table thead th.rb-c-rank,
.rb-table thead th.rb-c-player,
.rb-table tbody td.rb-c-rank,
.rb-table tbody td.rb-c-player {
    position: sticky;
    z-index: 2;
}

.rb-table thead th.rb-c-rank,
.rb-table tbody td.rb-c-rank {
    left: 0;
}

.rb-table thead th.rb-c-player,
.rb-table tbody td.rb-c-player {
    left: 52px;
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.07);
}

.rb-table thead th.rb-c-rank,
.rb-table thead th.rb-c-player {
    z-index: 4;
}

.rb-state {
    padding: 56px 20px;
    text-align: center;
    color: #5f77a0;
    font-size: 0.98rem;
}

.rb-error {
    color: var(--red-orange);
}

.rb-error span {
    display: block;
    margin-top: 8px;
    font-size: 0.82rem;
    color: #5f77a0;
}

@media (max-width: 600px) {
    .rb-bar {
        gap: 11px;
        padding: 13px;
    }

    .rb-select-lg {
        min-width: 0;
        width: 100%;
    }

    .rb-field-set {
        flex: 1 1 100%;
    }

    .rb-pills {
        padding: 12px 13px;
    }

    .rb-pill {
        padding: 7px 14px;
        font-size: 0.82rem;
    }

    .rb-c-player {
        min-width: 172px;
    }

    .rb-photo {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .rb-c-exp {
        min-width: 112px;
    }

    .rb-table thead th.rb-c-player,
    .rb-table tbody td.rb-c-player {
        left: 46px;
    }

    .rb-c-rank {
        width: 46px;
    }
}

.rb-csv {
    height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    color: #e6edf7;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.rb-csv:hover {
    border-color: var(--bright-orange);
    color: var(--bright-orange);
}

button.rb-exp-name {
    padding: 0;
    border: 0;
    background: none;
    font-family: 'Inter', sans-serif;
    text-align: left;
    cursor: pointer;
}

button.rb-exp-name:hover {
    color: var(--bright-orange);
    text-decoration: underline;
}

.rb-ov {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 8, 16, 0.78);
    backdrop-filter: blur(3px);
}

.rb-ov[hidden] {
    display: none;
}

.rb-ov-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 620px;
    max-height: 86vh;
    background: #0b1220;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
}

.rb-ov-head {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rb-ov-av {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.rb-ov-t h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #ffffff;
}

.rb-ov-t span {
    font-size: 0.78rem;
    color: #5f77a0;
}

.rb-ov-x {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    background: none;
    color: #8fa4c6;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.rb-ov-x:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.rb-ov-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rb-ov-controls .rb-select {
    min-width: 180px;
}

.rb-ov-pills {
    padding: 0;
    border: 0;
    gap: 6px;
}

.rb-ov-pills .rb-pill {
    padding: 6px 13px;
    font-size: 0.8rem;
}

.rb-ov-list {
    overflow-y: auto;
}

.rb-ov-table tbody td {
    background: transparent;
}

.rb-ov-table tbody tr:hover td {
    background: #121c2e;
}

.rb-ov-table .rb-c-player,
.rb-ov-table .rb-c-rank,
.rb-ov-table .rb-c-bye {
    position: static;
    box-shadow: none;
}

@media (max-width: 600px) {
    .rb-ov {
        padding: 0;
    }

    .rb-ov-box {
        max-width: none;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        border: 0;
    }

    .rb-ov-controls .rb-select {
        width: 100%;
    }
}

.rb-csv-lock {
    color: #8fa4c6;
}

.rb-csv-lock::before {
    content: "\1F512";
    margin-right: 7px;
    font-size: 12px;
}

.rb-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rb-group:last-child {
    border-bottom: 0;
}

.rb-group-h {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 14px 18px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bright-orange);
}

.rb-group-h span {
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0;
    color: #8fa4c6;
}

.rb-staff {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 6px;
    padding: 0 12px 16px;
}

.rb-staff-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.rb-staff-row:hover {
    background: #121c2e;
    border-color: rgba(255, 255, 255, 0.1);
}

.rb-staff-av {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

.rb-staff-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e6edf7;
}

.rb-bye {
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #5f77a0;
}

.rb-select option {
    background: #101a2b;
    color: #e6edf7;
}

.rb-select optgroup {
    background: #101a2b;
    color: #8fa4c6;
}