.free-agent-page {
    width: 100%;
    padding: 18px 20px 28px;
}

.free-agent-heading {
    min-height: 58px;
    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    background: #0b1728;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 5px 5px 0 0;
}

.free-agent-heading h1 {
    margin: 0;

    color: #ffffff;

    font-size: 25px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.free-agent-heading span {
    color: var(--ffo-gold);

    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.free-agent-content {
    padding: 12px;

    background: #07111f;
    border-radius: 0 0 5px 5px;
}

.free-agent-error {
    padding: 13px 14px;

    background: #3c1d26;
    border: 1px solid rgba(242, 121, 143, 0.3);
    border-radius: 4px;

    color: #f2798f;

    font-size: 12px;
    line-height: 1.35;
    font-weight: 800;
}

.free-agent-group {
    margin-bottom: 12px;

    background: #0b1728;
    border-radius: 4px;
    overflow: hidden;
}

.free-agent-group:last-child {
    margin-bottom: 0;
}

.free-agent-group__heading {
    min-height: 44px;
    padding: 0 13px;

    display: flex;
    align-items: center;

    background: #101d31;
    border-top: 3px solid var(--ffo-gold);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.free-agent-group__heading h2 {
    margin: 0;

    color: #ffffff;

    font-size: 15px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.free-agent-grid {
    padding: 8px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.free-agent-card {
    min-width: 0;

    background: #0d1a2c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.free-agent-card__header {
    min-height: 67px;
    padding: 8px;

    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;

    background: #101d31;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.free-agent-position {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--ffo-navy);
    border: 1px solid rgba(240, 197, 69, 0.6);
    border-radius: 3px;

    color: var(--ffo-gold);

    font-size: 10px;
    line-height: 1;
    font-weight: 900;
}

.free-agent-player {
    min-width: 0;
}

.free-agent-player h3 {
    margin: 0;
    overflow: hidden;

    color: #ffffff;

    font-size: 13px;
    line-height: 1.1;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.free-agent-player p {
    margin: 6px 0 0;
    overflow: hidden;

    color: #9eabc0;

    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.free-agent-player p span {
    margin: 0 2px;

    color: var(--ffo-gold);
}

.free-agent-bid-button,
.free-agent-submit {
    min-height: 31px;
    padding: 0 10px;

    background: var(--ffo-gold);
    border: 1px solid var(--ffo-gold);
    border-radius: 3px;

    color: #07111f;

    font: inherit;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.free-agent-bid-button:hover,
.free-agent-bid-button:focus-visible,
.free-agent-submit:hover,
.free-agent-submit:focus-visible {
    background: #ffffff;
    border-color: #ffffff;
    outline: none;
}

.free-agent-stats {
    padding: 7px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}

.free-agent-stat {
    min-width: 0;
    min-height: 39px;
    padding: 5px 3px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    background: #0a1525;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 3px;
}

.free-agent-stat.is-main {
    background: #162b6f;
    border-color: rgba(240, 197, 69, 0.65);
}

.free-agent-stat span {
    color: #8695ad;

    font-size: 8px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.free-agent-stat strong {
    color: #ffffff;

    font-size: 12px;
    line-height: 1;
    font-weight: 900;
}

.free-agent-stat.is-main span,
.free-agent-stat.is-main strong {
    color: var(--ffo-gold);
}

.free-agent-card__footer {
    min-height: 35px;
    padding: 0 8px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    background: #101d31;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.free-agent-card__footer span {
    color: #8f9db3;

    font-size: 8px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.free-agent-card__footer strong {
    color: var(--ffo-gold);

    font-size: 12px;
    line-height: 1;
    font-weight: 900;
}

.free-agent-empty {
    margin: 8px;
    padding: 14px;

    background: #0d1a2c;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;

    color: #9eabc0;

    font-size: 11px;
    line-height: 1.3;
    font-weight: 800;
    text-align: center;
}

.free-agent-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 36px 20px;
    overflow: auto;

    background: rgba(0, 0, 0, 0.82);
}

.free-agent-modal-backdrop.is-open {
    display: flex;
}

.free-agent-modal {
    width: 620px;

    background: #0b1728;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 3px solid var(--ffo-gold);
    border-radius: 5px;
    overflow: hidden;
}

.free-agent-modal__header {
    min-height: 56px;
    padding: 0 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    background: #101d31;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.free-agent-modal__header h2 {
    margin: 0;

    color: #ffffff;

    font-size: 18px;
    line-height: 1;
    font-weight: 900;
}

.free-agent-modal__close {
    width: 32px;
    height: 32px;
    padding: 0;

    background: #0d1a2c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;

    color: #ffffff;

    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.free-agent-modal__close:hover,
.free-agent-modal__close:focus-visible {
    border-color: var(--ffo-gold);
    color: var(--ffo-gold);
    outline: none;
}

.free-agent-form {
    padding: 15px;

    display: grid;
    gap: 13px;
}

.free-agent-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.free-agent-form label {
    display: block;
    margin-bottom: 6px;

    color: #aeb8cc;

    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.free-agent-form input,
.free-agent-form textarea {
    width: 100%;
    padding: 10px 11px;

    background: #07111f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;

    color: #ffffff;

    font: inherit;
    font-size: 13px;
    line-height: 1.25;
}

.free-agent-form input:focus,
.free-agent-form textarea:focus {
    border-color: var(--ffo-gold);
    outline: 2px solid rgba(240, 197, 69, 0.18);
}

.free-agent-form textarea {
    min-height: 88px;
    resize: vertical;
}

.free-agent-form small {
    display: block;
    margin-top: 6px;

    color: #8290a6;

    font-size: 9px;
    line-height: 1.3;
    font-weight: 700;
}

.free-agent-modal__footer {
    min-height: 58px;
    padding: 10px 15px;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;

    background: #101d31;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.free-agent-modal__footer p {
    margin: 0 auto 0 0;

    color: #75d49a;

    font-size: 10px;
    line-height: 1.3;
    font-weight: 800;
}

.free-agent-modal__footer p.is-error {
    color: #f2798f;
}

.free-agent-cancel {
    min-height: 31px;
    padding: 0 10px;

    background: #0d1a2c;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 3px;

    color: #ffffff;

    font: inherit;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.free-agent-cancel:hover,
.free-agent-cancel:focus-visible {
    border-color: var(--ffo-gold);
    color: var(--ffo-gold);
    outline: none;
}

.free-agent-submit:disabled {
    opacity: 0.55;
    cursor: wait;
}
