.player-compare-page {
    width: 100%;
    padding: 18px 20px 28px;
}

.player-compare-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;
}

.player-compare-heading h1 {
    margin: 0;
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.player-compare-heading__group {
    color: var(--ffo-gold);
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.player-compare-content {
    padding: 12px;
    background: #07111f;
    border-radius: 0 0 5px 5px;
}

.player-compare-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.player-compare-button {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    background: #162b6f;
    border: 0;
    border-radius: 3px;
    color: #ffffff;
    font-family: inherit;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    cursor: pointer;
}

.player-compare-button:hover,
.player-compare-button:focus-visible {
    background: #1c3689;
    color: #ffffff;
    outline: none;
}

.player-compare-button--link {
    background: #101d31;
    color: var(--ffo-gold);
}

.player-compare-button--link:hover,
.player-compare-button--link:focus-visible {
    background: #162b6f;
    color: #ffffff;
}

.player-compare-builder,
.player-compare-results {
    margin-bottom: 10px;
    background: #0b1728;
    border-top: 3px solid var(--ffo-gold);
    border-radius: 4px;
}

.player-compare-panel-heading {
    min-height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.player-compare-panel-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.player-compare-slot-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
    padding: 14px;
}

.player-compare-slot {
    min-width: 0;
    min-height: 104px;
    padding: 10px;
    background: #101d31;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.player-compare-slot label {
    display: block;
    margin-bottom: 7px;
    color: var(--ffo-gold);
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.player-compare-slot input {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    background: #07111f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: #ffffff;
    font-family: inherit;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    outline: none;
}

.player-compare-slot input::placeholder {
    color: #718096;
}

.player-compare-slot input:focus {
    border-color: rgba(240, 197, 69, 0.66);
}

.player-compare-slot small {
    min-height: 28px;
    margin-top: 7px;
    display: block;
    color: #8f9bb0;
    font-size: 9px;
    line-height: 1.35;
    font-weight: 700;
}

.player-compare-slot small.is-found {
    color: #dce4f2;
}

.player-compare-slot small.is-warning {
    color: #f0c545;
}

.player-compare-slot small.is-error {
    color: #f08b9e;
}

.player-compare-count {
    min-height: 42px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    background: #0d1a2c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #aeb8cc;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.player-compare-count strong {
    margin: 0 4px;
    color: var(--ffo-gold);
    font-weight: 900;
}

.player-compare-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 10px;
}

.player-compare-summary[hidden],
.player-compare-results[hidden],
.player-compare-cards[hidden],
.player-compare-empty[hidden] {
    display: none;
}

.player-compare-summary-card {
    min-width: 0;
    min-height: 100px;
    padding: 13px 14px;
    background: #0b1728;
    border-top: 3px solid var(--ffo-gold);
    border-radius: 4px;
}

.player-compare-summary-card span,
.player-compare-summary-card small {
    display: block;
}

.player-compare-summary-card span {
    margin-bottom: 8px;
    color: var(--ffo-gold);
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.player-compare-summary-card strong {
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.player-compare-summary-card small {
    margin-top: 7px;
    color: #aeb8cc;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 700;
}

.player-compare-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: #07111f;
}

.player-compare-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.player-compare-table th,
.player-compare-table td {
    min-width: 112px;
    height: 43px;
    padding: 0 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #dce4f2;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.player-compare-table th {
    height: 48px;
    background: #101d31;
    color: var(--ffo-gold);
    font-size: 10px;
    font-weight: 900;
}

.player-compare-table th:first-child,
.player-compare-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 126px;
    padding-left: 13px;
    background: #101d31;
    color: #ffffff;
    text-align: left;
    font-weight: 900;
}

.player-compare-table td:first-child {
    z-index: 1;
}

.player-compare-table tbody tr:nth-child(even) td:not(:first-child) {
    background: #0a1524;
}

.player-compare-table tbody tr:hover td:not(:first-child) {
    background: #101d31;
}

.player-compare-table td.is-best {
    background: rgba(240, 197, 69, 0.13) !important;
    box-shadow: inset 0 0 0 1px rgba(240, 197, 69, 0.28);
    color: var(--ffo-gold);
    font-weight: 900;
}

.player-compare-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.player-compare-card {
    min-width: 0;
    padding: 13px;
    background: #0b1728;
    border-top: 3px solid var(--ffo-gold);
    border-radius: 4px;
}

.player-compare-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 11px;
}

.player-compare-card h3 {
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.player-compare-card__meta {
    margin-top: 5px;
    color: #aeb8cc;
    font-size: 9px;
    line-height: 1.3;
    font-weight: 700;
}

.player-compare-card__remove {
    min-height: 28px;
    padding: 0 8px;
    flex: 0 0 auto;
    appearance: none;
    background: #101d31;
    border: 0;
    border-radius: 3px;
    color: #f08b9e;
    font-family: inherit;
    font-size: 8px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.player-compare-card__remove:hover,
.player-compare-card__remove:focus-visible {
    background: #162b6f;
    color: #ffffff;
    outline: none;
}

.player-compare-card__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.player-compare-card__stat {
    min-width: 0;
    min-height: 48px;
    padding: 6px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #101d31;
    border-radius: 3px;
    text-align: center;
}

.player-compare-card__stat span {
    color: #8f9bb0;
    font-size: 8px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.player-compare-card__stat strong {
    margin-top: 5px;
    color: #ffffff;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
}

.player-compare-empty {
    min-height: 96px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1728;
    border-radius: 4px;
    color: #aeb8cc;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
}
