.register-page {
    padding: 54px 0 70px;
    background: #fff;
    overflow: hidden;
}

.register-page__inner {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 48px;
    align-items: center;
}

.register-page__content {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 26px;
    padding: 42px;
    box-shadow: 0 20px 55px rgba(0,0,0,.08);
}

.register-page__label {
    font-weight: 900;
    color: #ff4d00;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.register-page__title {
    font-size: 52px;
    line-height: .95;
    font-weight: 900;
    color: #111;
    margin: 0 0 20px;
}

.register-page__title span {
    color: #ff4d00;
}

.register-page__text {
    font-size: 17px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 28px;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.register-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 14px;
    font-weight: 800;
    color: #111;
}

.form-field label span {
    color: #ff4d00;
}

.form-field input,
.form-field select {
    width: 100%;
    height: 54px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 15px;
    background: #fff;
    outline: none;
}

.form-field input:focus,
.form-field select:focus {
    border-color: #ff4d00;
}

.register-extra {
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    background: #fafafa;
    overflow: hidden;
}

.register-extra summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    cursor: pointer;
    list-style: none;
}

.register-extra summary::-webkit-details-marker {
    display: none;
}

.register-extra__arrow {
    font-size: 26px;
    color: #111;
    line-height: 1;
    transition: .2s;
}

.register-extra[open] .register-extra__arrow {
    transform: rotate(180deg);
}

.register-extra strong {
    display: block;
    font-size: 17px;
    font-weight: 900;
    color: #111;
}

.register-extra small {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: #777;
}

.register-extra__body {
    padding: 0 18px 20px;
}

.register-form__btn {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 12px;
    background: #ff4d00;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
}

.register-form__login {
    text-align: center;
    color: #666;
    font-size: 15px;
}

.register-form__login a {
    color: #ff4d00;
    font-weight: 800;
}

.register-page__media {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-page__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #fff 0%, rgba(255,255,255,.55) 18%, rgba(255,255,255,.2) 55%, #fff 100%),
        linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 25%, rgba(255,255,255,0) 70%, #fff 100%);
    z-index: 2;
    pointer-events: none;
}

.register-page__media img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 650px;
    object-fit: contain;
}

@media (max-width: 992px) {
    .register-page {
        padding: 28px 0 50px;
    }

    .register-page__inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .register-page__media {
        order: -1;
        min-height: 360px;
    }

    .register-page__media img {
        max-height: 380px;
    }

    .register-page__content {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .register-page__title {
        font-size: 40px;
    }

    .register-form__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .register-page__title {
        font-size: 36px;
    }

    .register-page__text {
        font-size: 15px;
    }

    .register-page__media {
        min-height: 300px;
    }

    .register-page__media img {
        max-height: 320px;
    }
}









.match-result-page {
    padding: 48px 0 80px;
    background: #f7f8fb;
}

.match-result-page__title {
    margin: 0 0 8px;
    font-size: 42px;
    font-weight: 900;
    color: #111827;
}

.match-result-page__subtitle {
    margin-bottom: 34px;
    font-size: 18px;
    color: #6b7280;
}

.duel-result-top {
    margin-bottom: 30px;
}

.duel-result-top__inner {
    display: grid;
    grid-template-columns: 1fr 180px 1fr;
    align-items: center;
    gap: 40px;
    padding: 34px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.duel-result-top__vs {
    font-size: 96px;
    font-weight: 900;
    line-height: 1;
    color: #ff5a00;
    font-style: italic;
    text-align: center;
    transform: rotate(-8deg);
}

.duel-player {
    position: relative;
    display: flex;
    align-items: center;
    gap: 26px;
}

.duel-player--right {
    justify-content: flex-end;
}

.duel-player__photo {
    position: relative;
    width: 170px;
    height: 170px;
    flex: 0 0 170px;
    padding: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .14);
}

.duel-player__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30%;
}

.duel-player__check {
    position: absolute;
    right: 8px;
    bottom: 10px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ff5a00;
    color: #fff;
    border: 4px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
}

.duel-player__name {
    margin-bottom: 8px;
    font-size: 27px;
    font-weight: 900;
    color: #111827;
}

.duel-player__nickname {
    margin-bottom: 16px;
    font-size: 17px;
    color: #6b7280;
}

.duel-player__rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #fff1e8;
    color: #ff5a00;
    font-size: 16px;
    font-weight: 800;
}

.duel-opponent-select {
    max-width: 430px;
    margin-left: auto;
    padding: 26px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #e8ebf2;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
}

.duel-opponent-select__title {
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 900;
    color: #111827;
}

.duel-opponent-select select,
.duel-opponent-select input {
    width: 100%;
    height: 58px;
    padding: 0 18px;
    border: 1px solid #d7dce8;
    border-radius: 14px;
    background: #fff;
    font-size: 16px;
    color: #111827;
    outline: none;
}

.duel-opponent-select select:focus,
.duel-opponent-select input:focus {
    border-color: #ff5a00;
    box-shadow: 0 0 0 4px rgba(255, 90, 0, .12);
}

.duel-player__remove {
    position: absolute;
    top: -24px;
    right: -18px;
    border: 0;
    background: transparent;
    font-size: 46px;
    color: #8a90a0;
    cursor: pointer;
}

.duel-player__remove:hover {
    color: #ff5a00;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 991px) {
    .duel-result-top__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 28px;
    }

    .duel-player,
    .duel-player--right {
        justify-content: center;
    }

    .duel-result-top__vs {
        font-size: 72px;
    }

    .duel-opponent-select {
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .match-result-page {
        padding: 28px 0 60px;
    }

    .match-result-page__title {
        font-size: 30px;
    }

    .duel-result-top__inner {
        padding: 5px;
        border-radius: 22px;
    }

    .duel-player {
        flex-direction: column;
        gap: 16px;
    }

    .duel-player--right {
        flex-direction: column-reverse;
    }

    .duel-player__photo {
width: 140px;
        height: 195px;
        flex-basis: 150px;
    }

    .duel-player__name {
        font-size: 23px;
    }
}




/* ==========================
Результаты дуэли
========================== */

.match-details {
    margin-top: 28px;
    padding: 32px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.match-details__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.match-details__label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 800;
    color: #ff5a00;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.match-details__title {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
    color: #111827;
}

.match-details__status {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fff1e8;
    color: #ff5a00;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.match-details__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 22px;
}

.match-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-field label {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.match-field input,
.match-field select {
    width: 100%;
    height: 58px;
    padding: 0 18px;
    border: 1px solid #d7dce8;
    border-radius: 14px;
    background: #fff;
    font-size: 16px;
    color: #111827;
    outline: none;
}

.match-field input:focus,
.match-field select:focus {
    border-color: #ff5a00;
    box-shadow: 0 0 0 4px rgba(255, 90, 0, .12);
}

.match-score {
    display: grid;
    grid-template-columns: 1fr 32px 1fr;
    align-items: center;
    gap: 10px;
}

.match-score input {
    text-align: center;
    font-size: 26px;
    font-weight: 900;
}

.match-score span {
    text-align: center;
    font-size: 32px;
    font-weight: 900;
    color: #ff5a00;
}

.match-confirm {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: 18px;
    background: #f7f8fb;
    border: 1px dashed #d8dde8;
}

.match-confirm__icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    background: #fff1e8;
    color: #ff5a00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.match-confirm__title {
    margin-bottom: 4px;
    font-size: 17px;
    font-weight: 900;
    color: #111827;
}

.match-confirm__text {
    font-size: 15px;
    color: #6b7280;
}

@media (max-width: 991px) {
    .match-details__grid {
        grid-template-columns: 1fr;
    }

    .match-details__head {
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .match-details {
        padding: 22px;
        border-radius: 22px;
    }

    .match-details__title {
        font-size: 25px;
    }

    .match-details__status {
        width: 100%;
        justify-content: center;
    }
}


.match-submit {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.match-submit__btn {
    width: 100%;
    max-width: 420px;
    height: 64px;
    border: 0;
    border-radius: 999px;
    background: #ff5a00;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(255, 90, 0, .28);
}

.match-submit__btn:hover {
    background: #e64f00;
}






/* ==========================
стр игроков всех
========================== */

.players-page {
    background: #f7f7f7;
    min-height: 100vh;
}

.players-section {
    padding: 42px 0 70px;
}

.players-title {
    margin: 0 0 28px;
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
    color: #151515;
}

.players-title::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin-top: 18px;
    background: #ff5a00;
    border-radius: 10px;
}

.players-table {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04);
}

.players-table__head {
    display: grid;
    grid-template-columns: 2.6fr 1fr 1fr 1fr 1fr 1.1fr 1.4fr;
    align-items: center;
    height: 54px;
    padding: 0 24px;
    border-bottom: 1px solid #eeeeee;
    color: #777;
    font-size: 13px;
    font-weight: 600;
}

.players-sort {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    color: #777;
    cursor: pointer;
    text-align: center;
}

.players-sort span {
    margin-left: 5px;
    color: #aaa;
}

.player-row {
    display: grid;
    grid-template-columns: 48px 2.2fr 1fr 1fr 1fr 1fr 1.1fr 1.4fr;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid #eeeeee;
    background: #fff;
}

.player-row:last-child {
    border-bottom: 0;
}

.player-row--big {
    height: 170px;
}

.player-row--medium {
    height: 100px;
}

.player-row--small {
    height: 60px;
}

.player-row__place {
    font-size: 22px;
    font-weight: 800;
    color: #ff5a00;
}

.player-row--medium .player-row__place,
.player-row--small .player-row__place {
    font-size: 16px;
    color: #222;
}

.player-row__player {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.player-row__photo {
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: #eee;
}

.player-row--big .player-row__photo {
    width: 104px;
    height: 104px;
}

.player-row--medium .player-row__photo {
    width: 54px;
    height: 54px;
}

.player-row--small .player-row__photo {
    width: 38px;
    height: 38px;
}

.player-row__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
}

.player-row__name {
    font-size: 18px;
    font-weight: 800;
    color: #171717;
}

.player-row__nickname {
    margin-top: 5px;
    font-size: 14px;
    color: #777;
}

.player-row--medium .player-row__name,
.player-row--small .player-row__name {
    font-size: 14px;
}

.player-row--medium .player-row__nickname,
.player-row--small .player-row__nickname {
    font-size: 12px;
}

.player-row__stat,
.player-row__rating {
    text-align: center;
    font-size: 18px;
    color: #222;
}

.player-row--medium .player-row__stat,
.player-row--small .player-row__stat {
    font-size: 14px;
}

.player-row__stat--wins .wins {
    color: #23a51f;
    font-weight: 700;
}

.player-row__rating {
    font-size: 32px;
    font-weight: 900;
    color: #ff5a00;
}

.player-row--medium .player-row__rating {
    font-size: 22px;
}

.player-row--small .player-row__rating {
    font-size: 17px;
}

.player-row__action {
    text-align: right;
}

.player-row__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #ff5a00;
    border-radius: 6px;
    color: #ff5a00;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.2s ease;
}

.player-row__btn:hover {
    background: #ff5a00;
    color: #fff;
}

.player-row--small .player-row__btn {
    min-height: 32px;
    padding: 0 12px;
    font-size: 11px;
}



.player-row__player {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.player-row__player:hover .player-row__name {
    color: #ff5a00;
}

.player-row__photo {
    transition: .2s ease;
}

.player-row__player:hover .player-row__photo {
    transform: scale(1.03);
}

.player-row__name {
    transition: .2s ease;
}








/* ==========================
Сообщения
========================== */

.messages-page {
padding: 40px 0;
background: #f5f6f8;
min-height: calc(100vh - 100px);
}

.messages-page__inner {
display: grid;
grid-template-columns: 320px 1fr;
gap: 24px;
height: calc(100vh - 180px);
min-height: 650px;
}

.messages-sidebar,
.messages-chat {
background: #fff;
border-radius: 24px;
box-shadow: 0 12px 35px rgba(0,0,0,.08);
overflow: hidden;
}

/* ===== SIDEBAR ===== */

.messages-sidebar {
display: flex;
flex-direction: column;
}

.messages-sidebar__title {
padding: 20px;
margin: 0;
font-size: 22px;
font-weight: 700;
}

.messages-sidebar__list {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
}

.messages-dialog {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 20px;
text-decoration: none;
color: #111;
border-top: 1px solid #eee;
transition: .2s;
}

.messages-dialog:hover,
.messages-dialog.active {
background: #fff2e8;
}

.messages-dialog img {
width: 48px;
height: 48px;
border-radius: 50%;
object-fit: cover;
}

.messages-dialog__name {
font-size: 14px;
font-weight: 700;
}

.messages-dialog__unread {
margin-top: 4px;
font-size: 12px;
color: #ff5a00;
font-weight: 700;
}

/* ===== CHAT ===== */

.messages-chat {
display: flex;
flex-direction: column;
height: 100%;
}

.messages-chat__header {
display: flex;
align-items: center;
gap: 14px;
padding: 18px 22px;
border-bottom: 1px solid #eee;
}

.messages-chat__header img {
width: 54px;
height: 54px;
border-radius: 50%;
object-fit: cover;
}

.messages-chat__name {
font-size: 20px;
font-weight: 800;
}

.messages-chat__profile {
font-size: 14px;
color: #ff5a00;
text-decoration: none;
}

.messages-chat__body {
flex: 1;
overflow-y: auto;
padding: 22px;
}

/* ===== MESSAGES ===== */

.message-item {
display: flex;
margin-bottom: 12px;
}

.message-item.own {
justify-content: flex-end;
}

.message-item__bubble {
max-width: 70%;
padding: 12px 14px;
border-radius: 16px;
background: #f1f1f1;
font-size: 15px;
line-height: 1.4;
}

.message-item.own .message-item__bubble {
background: #ff6a00;
color: #fff;
}

.message-item__time {
margin-top: 6px;
font-size: 11px;
opacity: .7;
}

/* ===== FORM ===== */

.messages-form {
display: flex;
gap: 12px;
padding: 18px;
border-top: 1px solid #eee;
}

.messages-form textarea {
flex: 1;
min-height: 80px;
height: 80px;
padding: 14px;
border: 1px solid #ddd;
border-radius: 14px;
resize: none;
box-sizing: border-box;
font-size: 15px;
}

.messages-form button {
min-width: 140px;
}

.messages-empty,
.messages-placeholder {
padding: 24px;
color: #777;
}





/* ==========================
MOBILE
========================== */

@media (max-width: 768px) {




.duel-result-top__inner {
        grid-template-columns: 135px 60px 135px;
        text-align: center;
        gap: 5px;
    }

.duel-result-top__vs {
        font-size: 40px;
    }



```
.messages-page {
    padding: 12px 0;
}

.messages-page__inner {
    display: block;
    height: auto;
    min-height: auto;
}

/* Горизонтальный список диалогов */

.messages-sidebar {
    margin-bottom: 12px;
    border-radius: 18px;
}

.messages-sidebar__title {
    padding: 14px 16px;
    font-size: 18px;
}

.messages-sidebar__list {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 0 8px 10px;
}

.messages-dialog {
    flex: 0 0 86px;
    width: 86px;
    padding: 10px 6px;
    flex-direction: column;
    text-align: center;
    border-top: 0;
    border-radius: 14px;
}

.messages-dialog img {
    width: 42px;
    height: 42px;
    margin: 0 auto;
}

.messages-dialog__name {
    font-size: 11px;
    line-height: 1.15;
}

.messages-dialog__unread {
    font-size: 10px;
}

/* Чат */

.messages-chat {
    min-height: 520px;
    border-radius: 18px;
}

.messages-chat__body {
    padding: 16px;
}

.message-item__bubble {
    max-width: 85%;
}

/* Форма */

.messages-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.messages-form textarea {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 110px;
    min-height: 110px;
}

.messages-form button {
    width: 100%;
    min-width: 100%;
    height: 52px;
}
```

}

@media (max-width: 768px) {

    .messages-chat {
        height: calc(100vh - 260px);
        min-height: 520px;
        max-height: calc(100vh - 120px);
        display: flex;
        flex-direction: column;
    }

    .messages-chat__header {
        flex: 0 0 auto;
    }

    .messages-chat__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .messages-form {
        flex: 0 0 auto;
    }
}








/* ==========================
Видео матча
========================== */

.match-video {
    margin-top: 28px;
    padding: 28px 32px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}


.match-video__head {
    display: flex;
    align-items: center;
    gap: 18px;

    margin: -28px -32px 28px;
    padding: 24px 32px;

    background: #f8f9fb;
    border-radius: 28px 28px 0 0;
    border-bottom: 1px solid #eceff5;
}

.match-video__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #fff1e8;
    color: #ff5a00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
}

.match-video__title {
    font-size: 22px;
    font-weight: 900;
    color: #111827;
}

.match-video__text {
    margin-top: 3px;
    font-size: 15px;
    color: #6b7280;
}

.match-video__field {
    margin-bottom: 18px;
}

.match-video__field input {
    width: 100%;
    height: 58px;
    padding: 0 18px;
    border: 1px solid #d7dce8;
    border-radius: 14px;
    background: #fff;
    font-size: 16px;
    color: #111827;
    outline: none;
}

.match-video__field input:focus {
    border-color: #ff5a00;
    box-shadow: 0 0 0 4px rgba(255, 90, 0, .12);
}

.match-video-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
}

.match-video-consent input {
    width: 18px;
    height: 18px;
    accent-color: #ff5a00;
}

.match-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff1e8;
    color: #ff5a00;
    font-size: 13px;
    font-weight: 900;
}

.match-tooltip__content {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    width: 360px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 30;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .24);
}

.match-tooltip:hover .match-tooltip__content {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 575px) {
    .match-video {
        padding: 22px;
        border-radius: 22px;
    }

    .match-video-consent {
        align-items: flex-start;
    }

    .match-tooltip__content {
        left: auto;
        right: -20px;
        width: 280px;
        transform: none;
    }
}









/* ==========================
Результаты матча
========================== */



.results-page {
    padding: 48px 0 70px;
    background: #f6f6f7;
}

.results-title {
    margin: 0;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 900;
    color: #111;
}

.results-line {
    width: 48px;
    height: 3px;
    margin: 16px 0;
    background: #ff4b00;
    border-radius: 10px;
}

.results-total {
    color: #858b94;
    font-size: 17px;
}

.results-toolbar {
    margin: 34px 0 28px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.results-filters {
    display: inline-flex;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 14px;
    overflow: hidden;
}

.results-filter {
    padding: 15px 28px;
    color: #222;
    text-decoration: none;
    font-weight: 700;
    border-right: 1px solid #e8e8e8;
}

.results-filter:last-child {
    border-right: 0;
}

.results-filter.active {
    background: #ff4b00;
    color: #fff;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.result-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px 28px 26px;
    box-shadow: 0 12px 34px rgba(0,0,0,.06);
}

.result-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #8b929c;
    font-size: 15px;
    margin-bottom: 18px;
}

.result-video {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff0000;
    font-weight: 800;
    text-decoration: none;
}

.result-video__icon {
    width: 24px;
    height: 17px;
    border-radius: 5px;
    background: #ff0000;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.result-card__body {
    display: grid;
    grid-template-columns: 1fr 170px 1fr;
    align-items: center;
    gap: 28px;
}

.result-player {
    display: flex;
    align-items: center;
    gap: 22px;
}

.result-player--right {
    justify-content: flex-end;
    text-align: right;
}

.result-photo {
    position: relative;
    width: 140px;
    height: 140px;
    flex: 0 0 140px;
    border-radius: 50%;
    background: #f0f1f3;
    overflow: visible;
}

.result-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    object-position: center 10%;
}

.result-badge {
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    background: #fff;
}

.result-badge--win {
    color: #139c25;
    border: 1px solid #bdebc3;
    background: #effff1;
}

.result-badge--loss {
    color: #ff1d1d;
    border: 1px solid #ffc8c8;
    background: #fff3f3;
}

.result-name {
    font-size: 22px;
    line-height: 1.15;
    font-weight: 900;
    color: #111;
}

.result-nick {
    margin-top: 6px;
    color: #707781;
    font-size: 16px;
}

.result-rating {
    margin-top: 16px;
    font-size: 30px;
    font-weight: 900;
    color: #111;
}

.result-change {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 900;
}

.result-change--plus {
    color: #0aaa28;
}

.result-change--minus {
    color: #ff1717;
}

.result-score {
    text-align: center;
    font-size: 48px;
    font-weight: 900;
    color: #111;
    white-space: nowrap;
}

.result-score b {
    margin: 0 12px;
}

.result-score small {
    display: block;
    margin-top: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #888f98;
}

.score-win {
    color: #ff4b00;
}

.result-crown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 7px;
    border-radius: 50%;
    color: #ff7a00;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    font-size: 18px;
    vertical-align: middle;
}

.results-empty {
    padding: 30px;
    background: #fff;
    border-radius: 18px;
    color: #777;
    box-shadow: 0 12px 34px rgba(0,0,0,.06);
}


@media (max-width: 768px) {
    .results-page {
        padding: 28px 0 50px;
    }

    .results-title {
        font-size: 32px;
    }

    .results-toolbar {
        overflow-x: auto;
        margin: 26px -15px 22px;
        padding: 0 15px;
    }

    .results-filters {
        min-width: max-content;
    }

    .results-filter {
        padding: 13px 20px;
        font-size: 14px;
    }

    .result-card {
        padding: 18px 16px 24px;
        border-radius: 18px;
    }

    .result-card__body {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .result-score {
        order: -1;
        font-size: 42px;
    }

    .result-player,
    .result-player--right {
        width: 100%;
        justify-content: space-between;
        text-align: left;
    }

    .result-player--right {
        flex-direction: row-reverse;
    }

    .result-photo {
        width: 104px;
        height: 104px;
        flex-basis: 104px;
    }

    .result-name {
        font-size: 18px;
    }

    .result-rating {
        font-size: 24px;
    }

    .result-card__top {
        font-size: 13px;
    }
}




.results-search {
    width: 360px;
    height: 56px;
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 16px;
    position: relative;
}

.results-search-select {
    position: relative;
    flex: 1;
}

.results-search__input {
    width: 100%;
    height: 100%;
    padding: 0 76px 0 18px;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.results-search__clear,
.results-search__arrow {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #9aa1aa;
}

.results-search__clear {
    right: 38px;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.results-search__clear.active {
    display: flex;
}

.results-search__arrow {
    right: 12px;
    font-size: 24px;
    line-height: 1;
}

.results-search__button {
    width: 58px;
    border: 0;
    border-left: 1px solid #edf0f3;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    border-radius: 0 16px 16px 0;
}

.results-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: -58px;
    z-index: 20;
    display: none;
    flex-direction: column;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
    padding: 8px;
}

.results-search-dropdown.active {
    display: flex;
}

.results-search-option {
    width: 100%;
    padding: 13px 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    text-align: left;
}

.results-search-option:hover {
    background: #fff2e8;
}

.results-search-option span {
    font-size: 15px;
    font-weight: 800;
    color: #111;
}

.results-search-option small {
    font-size: 13px;
    color: #8b929c;
}

@media (max-width: 768px) {
    .results-search {
        width: 100%;
    }

    .results-search-dropdown {
        right: 0;
    }
}


/* ==========================
Результаты — улучшенная мобильная версия
========================== */

@media (max-width: 768px) {
    .results-toolbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
        margin: 22px -15px 22px;
        padding: 0 15px;
        gap: 14px;
    }

    .results-filters {
        width: 100%;
        overflow-x: auto;
        border-radius: 0;
    }

    .results-search {
        width: 100%;
        flex: 0 0 auto;
    }

    .results-search__clear,
    .results-search__arrow {
        top: 50%;
    }

    .result-card {
        padding: 18px 14px 24px;
        border-radius: 20px;
    }

    .result-card__top {
        margin-bottom: 22px;
    }

    .result-card__body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 14px;
        align-items: start;
    }

    .result-score {
        grid-column: 1 / -1;
        order: -1;
        font-size: 42px;
        line-height: 1;
        text-align: center;
    }

    .result-score small {
        margin-top: 12px;
        font-size: 14px;
    }

    .result-player,
    .result-player--right {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 18px;
        text-align: center;
    }

    .result-player--right {
        flex-direction: column-reverse;
    }

    .result-info {
        width: 100%;
        text-align: center;
    }

    .result-photo {
        width: 118px;
        height: 118px;
        flex: 0 0 118px;
    }

    .result-name {
        font-size: 18px;
        line-height: 1.15;
    }

    .result-nick {
        font-size: 14px;
    }

    .result-rating {
        margin-top: 12px;
        font-size: 28px;
    }

    .result-change {
        font-size: 18px;
    }

    .result-badge {
        bottom: -10px;
        padding: 7px 14px;
        font-size: 12px;
    }

    .result-crown {
        width: 28px;
        height: 28px;
        font-size: 15px;
        margin-right: 5px;
    }
}




.result-player {
    text-decoration: none;
    color: inherit;
    transition: .2s;
}

.result-player:hover {
    transform: translateY(-2px);
}

.result-player:hover .result-name {
    color: #ff4b00;
}

.result-player:hover .result-photo img {
    box-shadow: 0 8px 25px rgba(255,75,0,.25);
}

.result-player:visited {
    color: inherit;
}









.player-row__mobile-details,
.player-row__toggle {
    display: none;
}

@media (max-width: 767px) {

    .players-section {
        padding: 28px 0 40px;
    }

    .players-title {
        font-size: 36px;
        margin-bottom: 28px;
    }

    .players-table {
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible;
    }

    .players-table__head {
        display: none;
    }

    .players-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .player-row {
        position: relative;
        display: grid;
        grid-template-columns: 54px 72px 1fr 76px 42px;
        align-items: center;
        height: auto !important;
        min-height: 92px;
        padding: 16px 14px;
        border: 1px solid #eeeeee;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 10px 28px rgba(0,0,0,.05);
    }

    .player-row--big {
        min-height: 150px;
        grid-template-columns: 82px 118px 1fr 58px;
        padding: 22px 18px;
    }

    .player-row__place {
        font-size: 26px;
        font-weight: 900;
        color: #111;
        text-align: center;
    }

    .player-row--big .player-row__place {
        font-size: 62px;
        color: #ff5a00;
    }

    .player-row__player {
        display: contents;
    }

    .player-row__photo {
        width: 54px !important;
        height: 54px !important;
        border-radius: 50%;
        overflow: hidden;
        background: #f1f1f1;
    }

    .player-row--big .player-row__photo {
        width: 110px !important;
        height: 110px !important;
    }

    .player-row__photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .player-row__info {
        min-width: 0;
        padding-left: 10px;
    }

    .player-row__name {
        font-size: 17px;
        line-height: 1.15;
        font-weight: 900;
        color: #111;
    }

    .player-row--big .player-row__name {
        font-size: 24px;
    }

    .player-row__nickname {
        margin-top: 4px;
        font-size: 14px;
        color: #6d7480;
    }

    .player-row--big .player-row__nickname {
        font-size: 17px;
    }

    .player-row__rating {
        text-align: right;
        color: #ff4b00;
    }

    .player-row__rating strong {
        display: block;
        font-size: 24px;
        line-height: 1;
        font-weight: 900;
    }

    .player-row--big .player-row__rating strong {
        font-size: 32px;
    }

    .player-row__rating span {
        display: block;
        margin-top: 4px;
        font-size: 12px;
        font-weight: 500;
        color: #6d7480;
    }

    .player-row__stat,
    .player-row__action {
        display: none;
    }

    .player-row__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 5px 16px rgba(0,0,0,.12);
        color: #111;
        font-size: 20px;
        cursor: pointer;
    }

    .player-row__toggle span {
        display: none;
    }

    .player-row.is-open .player-row__toggle b {
        transform: rotate(180deg);
    }

    .player-row__mobile-details {
        grid-column: 1 / -1;
        display: none;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        margin-top: 18px;
        padding-top: 18px;
        border-top: 1px solid #eeeeee;
    }

    .player-row.is-open .player-row__mobile-details {
        display: grid;
    }

    .player-row__mobile-details > div {
        text-align: center;
        padding: 8px 6px;
        border-right: 1px solid #eeeeee;
    }

    .player-row__mobile-details > div:nth-child(4) {
        border-right: 0;
    }

    .player-row__mobile-details span {
        display: block;
        margin-bottom: 6px;
        font-size: 11px;
        line-height: 1.2;
        color: #6d7480;
    }

    .player-row__mobile-details strong {
        font-size: 16px;
        font-weight: 900;
        color: #111;
    }

    .player-row__mobile-details em {
        font-style: normal;
        color: #10a832;
    }

    .player-row__btn--mobile {
        grid-column: 1 / -1;
        display: flex;
        width: 100%;
        min-height: 44px;
        margin-top: 14px;
        border-radius: 8px;
        background: #ff4b00;
        color: #fff;
        border-color: #ff4b00;
    }
}







@media (max-width: 767px) {

    .players-section {
        padding: 24px 0 40px;
    }

    .players-section .site-container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .players-title {
        font-size: 34px;
        margin-bottom: 22px;
    }

    .players-table {
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .players-table__head {
        display: none;
    }

    .players-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .player-row {
        display: grid;
        grid-template-columns: 32px 38px minmax(0, 1fr) 58px 28px;
        align-items: center;
        min-height: 68px;
        height: auto !important;
        padding: 10px 8px;
        border: 1px solid #eee;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
    }

    .player-row--big {
        grid-template-columns: 86px 1fr 38px;
        grid-template-areas:
            "rank photo toggle"
            "info info toggle"
            "rating rating toggle"
            "details details details";
        min-height: 170px;
        padding: 16px 12px;
        border-radius: 14px;
        box-shadow: 0 8px 22px rgba(0,0,0,.06);
    }

    .player-row__place {
        font-size: 22px;
        font-weight: 900;
        color: #111;
        text-align: center;
    }

    .player-row--big .player-row__place {
        grid-area: rank;
        font-size: 56px;
        color: #ff4b00;
        line-height: 1;
    }

    .player-row__player {
        display: contents;
        text-decoration: none;
        color: inherit;
    }

    .player-row__photo {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50%;
        overflow: hidden;
        background: #eee;
    }

    .player-row--big .player-row__photo {
        grid-area: photo;
        width: 96px !important;
        height: 96px !important;
        justify-self: start;
    }

    .player-row__photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .player-row__info {
        min-width: 0;
        padding-left: 8px;
    }

    .player-row--big .player-row__info {
        grid-area: info;
        padding-left: 0;
        margin-top: 10px;
    }

    .player-row__name {
        font-size: 16px;
        line-height: 1.15;
        font-weight: 900;
        color: #111;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .player-row--big .player-row__name {
        font-size: 22px;
        white-space: normal;
    }

    .player-row__nickname {
        margin-top: 3px;
        font-size: 13px;
        color: #6d7480;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .player-row--big .player-row__nickname {
        font-size: 16px;
    }

    .player-row__rating {
        text-align: right;
        color: #ff4b00;
        font-size: 23px;
        font-weight: 900;
        line-height: 1;
    }

    .player-row--big .player-row__rating {
        grid-area: rating;
        margin-top: 10px;
        text-align: left;
        font-size: 30px;
    }

    .player-row__rating span {
        display: none;
    }

    .player-row--big .player-row__rating span {
        display: block;
        margin-top: 4px;
        font-size: 15px;
        font-weight: 500;
        color: #6d7480;
    }

    .player-row__stat,
    .player-row__action {
        display: none;
    }

    .player-row__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border: 0;
        border-radius: 50%;
        background: transparent;
        font-size: 18px;
        color: #111;
        cursor: pointer;
    }

    .player-row--big .player-row__toggle {
        grid-area: toggle;
        width: 38px;
        height: 38px;
        background: #fff;
        box-shadow: 0 5px 16px rgba(0,0,0,.12);
        align-self: center;
        justify-self: end;
    }

    .player-row__toggle span {
        display: none;
    }

    .player-row.is-open .player-row__toggle b {
        transform: rotate(180deg);
    }

    .player-row__mobile-details {
        grid-area: details;
        grid-column: 1 / -1;
        display: none;
        grid-template-columns: repeat(4, 1fr);
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #eee;
    }

    .player-row.is-open .player-row__mobile-details {
        display: grid;
    }

    .player-row__mobile-details > div {
        text-align: center;
        padding: 6px 4px;
        border-right: 1px solid #eee;
    }

    .player-row__mobile-details > div:nth-child(4) {
        border-right: 0;
    }

    .player-row__mobile-details span {
        display: block;
        margin-bottom: 5px;
        font-size: 11px;
        line-height: 1.2;
        color: #6d7480;
    }

    .player-row__mobile-details strong {
        font-size: 15px;
        font-weight: 900;
        color: #111;
    }

    .player-row__mobile-details em {
        font-style: normal;
        color: #10a832;
    }

    .player-row__btn--mobile {
        grid-column: 1 / -1;
        display: flex;
        width: 100%;
        min-height: 42px;
        margin-top: 14px;
        border-radius: 8px;
        background: #ff4b00;
        border-color: #ff4b00;
        color: #fff;
    }
}


@media (max-width: 767px) {

    .players-section .site-container {
        width: 95%;
        max-width: 95%;
    }

}


@media (min-width: 768px) {

    .player-row__rating span {
        display: none;
    }

}







.profile-edit-page {
    padding: 48px 0 70px;
    background: #f6f6f7;
}

.profile-edit {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 18px 50px rgba(0,0,0,.08);
}

.profile-edit__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.profile-edit__label {
    margin-bottom: 10px;
    color: #ff4d00;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-edit__title {
    margin: 0 0 12px;
    font-size: 42px;
    font-weight: 900;
    color: #111;
}

.profile-edit__text {
    max-width: 520px;
    margin: 0;
    color: #666;
    font-size: 17px;
    line-height: 1.5;
}

.profile-edit__photo {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ff4d00;
    flex: 0 0 132px;
}

.profile-edit__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-edit-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.profile-edit-form__btn {
    width: 100%;
    height: 60px;
    margin-top: 26px;
    border: none;
    border-radius: 14px;
    background: #ff4d00;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

.profile-edit-form__back {
    display: block;
    margin-top: 18px;
    text-align: center;
    color: #ff4d00;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 768px) {
    .profile-edit-page {
        padding: 24px 0 50px;
    }

    .profile-edit {
        padding: 24px;
        border-radius: 24px;
    }

    .profile-edit__head {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .profile-edit__title {
        font-size: 32px;
    }

    .profile-edit-form__grid {
        grid-template-columns: 1fr;
    }
}






.player-hero__inner {
    position: relative;
}

.player-hero__profile-actions {
    position: absolute;
    right: 22px;
    bottom: 60px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
}

.player-hero__profile-actions a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.player-hero__profile-actions a:hover {
    color: #ff4d00;
}

.player-hero__profile-actions span {
    color: #999;
}

@media (max-width: 768px) {
    .player-hero__profile-actions {
        display: none;
    }
}



/* ==========================
ИГРОКИ — мобильная версия TOP-3
Новый дизайн первых 3 карточек
========================== */

@media (max-width: 767px) {

    /* Контейнер страницы игроков шире */
    .players-section .site-container {
        width: 96% !important;
        max-width: 96% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .players-list {
        gap: 10px;
    }

    /* Общая карточка TOP-3 */
    .player-row--big {
        position: relative;
        display: grid !important;

        grid-template-columns: 30% 70%;
        grid-template-areas:
            "rank photo"
            "info photo"
            "rating photo"
            "details details";

        min-height: 250px;
        height: auto !important;

        padding: 22px 14px 18px;
        overflow: hidden;

        border-radius: 16px;
        background: #fff;
        border: 1px solid #ededed;
        box-shadow: 0 10px 28px rgba(0,0,0,.06);
    }

    /* Номер места */
    .player-row--big .player-row__place {
        grid-area: rank;

        align-self: start;
        justify-self: start;

        font-size: 58px;
        line-height: .9;
        font-weight: 900;
        color: #ff4b00;
        text-align: left;

        margin: 0;
        padding: 0;
        z-index: 3;
    }

    /* Ссылка-обертка игрока не должна ломать grid */
    .player-row--big .player-row__player {
        display: contents;
        text-decoration: none;
        color: inherit;
    }

    /* Фото занимает всю правую колонку */
    .player-row--big .player-row__photo {
        grid-area: photo;

        width: 100% !important;
        height: 240px !important;

        align-self: center;
        justify-self: center;

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

        overflow: visible;
        background: transparent;
        border-radius: 0;
        z-index: 2;
    }

    .player-row--big .player-row__photo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center bottom;
        border-radius: 0;
    }

    /* Имя и ник — левая колонка */
    .player-row--big .player-row__info {
        grid-area: info;

        align-self: end;
        justify-self: stretch;

        min-width: 0;
        padding-left: 0;
        margin-top: 16px;
        z-index: 3;
    }

    .player-row--big .player-row__name {
        font-size: 25px;
        line-height: 1.05;
        font-weight: 900;
        color: #111;

        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .player-row--big .player-row__nickname {
        margin-top: 6px;
        font-size: 16px;
        line-height: 1.2;
        color: #6d7480;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Рейтинг — левая колонка под именем */
    .player-row--big .player-row__rating {
        grid-area: rating;

        align-self: start;
        justify-self: start;

        margin-top: 14px;
        text-align: left;
        color: #ff4b00;
        z-index: 3;
    }

    .player-row--big .player-row__rating strong {
        display: block;
        font-size: 38px;
        line-height: 1;
        font-weight: 900;
        color: #ff4b00;
    }

    .player-row--big .player-row__rating span {
        display: block;
        margin-top: 5px;
        font-size: 15px;
        line-height: 1.1;
        font-weight: 500;
        color: #6d7480;
    }

    /* Кнопка раскрытия — поверх правой части */
    .player-row--big .player-row__toggle {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);

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

        width: 40px;
        height: 40px;

        border: 0;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 8px 22px rgba(0,0,0,.14);

        color: #111;
        font-size: 20px;
        cursor: pointer;
        z-index: 5;
    }

    .player-row--big .player-row__toggle span {
        display: none;
    }

    .player-row--big.is-open .player-row__toggle b {
        transform: rotate(180deg);
    }

    /* Скрываем десктопные колонки внутри TOP-3 */
    .player-row--big .player-row__stat,
    .player-row--big .player-row__action {
        display: none !important;
    }

    /* Раскрытый блок */
    .player-row--big .player-row__mobile-details {
        grid-area: details;
        grid-column: 1 / -1;

        display: none;
        grid-template-columns: repeat(4, 1fr);

        margin-top: 18px;
        padding-top: 16px;
        border-top: 1px solid #eeeeee;
        z-index: 4;
    }

    .player-row--big.is-open .player-row__mobile-details {
        display: grid;
    }

    .player-row--big .player-row__btn--mobile {
        grid-column: 1 / -1;

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

        width: 100%;
        min-height: 44px;
        margin-top: 16px;

        border-radius: 8px;
        background: #ff4b00;
        border-color: #ff4b00;

        color: #fff;
        font-size: 14px;
        font-weight: 900;
        text-transform: uppercase;
        text-decoration: none;
    }
}







/* ==========================
REGISTRATION MOBILE IMAGE TEXT OVERLAY
Только мобильная версия
========================== */

@media (max-width: 768px) {

    .register-page {
        padding-top: 0;
    }

    .register-page .site-container {
        width: 100%;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .register-page__inner {
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .register-page__media {
        order: 1;
        position: relative;
        width: 100%;
        height: 315px;
        min-height: 315px;
        overflow: hidden;
        border-radius: 0;
        background: #111;
    }

    .register-page__media::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        background:
            linear-gradient(
                180deg,
                rgba(0,0,0,.04) 0%,
                rgba(0,0,0,.20) 42%,
                rgba(0,0,0,.78) 100%
            );
        pointer-events: none;
    }

    .register-page__media img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center top;
    }

    .register-page__content {
        order: 2;
        position: static;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .register-page__intro {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 345;
        z-index: 5;
        padding: 115px 22px 34px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        color: #fff;
        pointer-events: none;
    }

    .register-page__label {
        width: fit-content;
        margin-bottom: 12px;
        padding: 7px 12px;
        border-radius: 999px;
        background: rgba(255,255,255,.18);
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .03em;
        text-transform: uppercase;
        backdrop-filter: blur(8px);
    }

    .register-page__title {
        margin: 0 0 14px;
        color: #fff;
        font-size: 40px;
        line-height: .95;
        font-weight: 1000;
        letter-spacing: -.04em;
    }

    .register-page__title span {
        color: #ff5a00;
    }

    .register-page__text {
        max-width: 100%;
        margin: 0;
        color: rgba(255,255,255,.88);
        font-size: 15px;
        line-height: 1.45;
    }

    .register-form {
        position: relative;
        z-index: 6;
        width: calc(100% - 28px);
        margin: -24px auto 0;
    }
}






.pending-match-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fff1e8;
    color: #ff5a00;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.pending-match-edit-btn:hover {
    background: #ff5a00;
    color: #fff;
}




.form-message--success {
    position: relative;
    background: #fff;
    color: #111827;
    border: 1px solid #edf0f5;
    font-size: 30px;
    text-align: center;
    border-left: 5px solid #ff5a00;
    padding: 15px;
}

.form-message--success::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-right: 10px;
    border-radius: 50%;
    background: #ff5a00;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}




@media (max-width: 768px) {
    .form-message--success {
    position: relative;
    background: #fff;
    border: 1px solid #edf0f5;
    font-size: 18px;
    text-align: center;
    border-left: 5px solid #ff5a00;
    padding: 15px;
    color: #ff5a00;
}
}




/* ==========================
PENDING / CONFIRM MATCHES PAGE
========================== */

.confirm-matches-page {
    padding: 48px 0 80px;
    background: #f7f8fb;
    min-height: calc(100vh - 120px);
}

.confirm-matches-head {
    margin-bottom: 32px;
}

.confirm-matches-head__label {
    margin-bottom: 8px;
    color: #ff5a00;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.confirm-matches-head h1 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 44px;
    line-height: 1;
    font-weight: 900;
}

.confirm-matches-head p {
    margin: 0;
    max-width: 620px;
    color: #6b7280;
    font-size: 17px;
    line-height: 1.45;
}

/* Сетка карточек */
.confirm-matches-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.confirm-match-card {
    height: 100%;
    padding: 22px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #edf0f5;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.confirm-match-card__status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 18px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff1e8;
    color: #ff5a00;
    font-size: 13px;
    font-weight: 900;
}

.confirm-match-card__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
}

.confirm-match-card__player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.confirm-match-card__player strong {
    color: #111827;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 900;
}

.confirm-match-card__player span {
    color: #6b7280;
    font-size: 15px;
    font-weight: 700;
}

.confirm-match-card__score {
    order: -1;
    text-align: center;
    color: #111827;
    font-size: 40px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

.confirm-match-card__score::before {
    content: "Счёт";
    display: block;
    margin-bottom: 8px;
    color: #ff5a00;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.confirm-match-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.confirm-match-card__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f7f8fb;
    color: #374151;
    font-size: 14px;
    font-weight: 800;
}

.confirm-match-card__winner {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #f7f8fb;
    color: #374151;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.confirm-match-card__winner strong {
    color: #ff5a00;
    font-weight: 900;
}

.confirm-match-card__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.confirm-match-card__actions button,
.confirm-match-card__actions a {
    border: 0;
    text-decoration: none;
}

.confirm-match-btn,
.reject-match-btn,
.pending-match-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: .2s ease;
}

.confirm-match-btn {
    background: #ff5a00;
    color: #fff;
    box-shadow: 0 12px 28px rgba(255, 90, 0, .24);
}

.confirm-match-btn:hover {
    background: #e64f00;
    color: #fff;
    transform: translateY(-1px);
}

.reject-match-btn {
    background: #fff1f1;
    color: #c62828;
}

.reject-match-btn:hover {
    background: #c62828;
    color: #fff;
}

.pending-match-edit-btn {
    background: #fff1e8;
    color: #ff5a00;
}

.pending-match-edit-btn:hover {
    background: #ff5a00;
    color: #fff;
}

.confirm-matches-list > p {
    grid-column: 1 / -1;
    margin: 0;
    padding: 24px 28px;
    border-radius: 22px;
    background: #fff;
    color: #6b7280;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

/* Планшет — 2 карточки в ряд */
@media (max-width: 1200px) {
    .confirm-matches-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Мобильная версия — 1 карточка */
@media (max-width: 768px) {
    .confirm-matches-page {
        padding: 28px 0 56px;
    }

    .confirm-matches-head {
        margin-bottom: 24px;
    }

    .confirm-matches-head h1 {
        font-size: 32px;
    }

    .confirm-matches-head p {
        font-size: 15px;
    }

    .confirm-matches-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .confirm-match-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .confirm-match-card__top {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .confirm-match-card__score {
        order: -1;
        font-size: 42px;
    }

    .confirm-match-card__player {
        align-items: center;
    }

    .confirm-match-card__player strong {
        font-size: 20px;
    }

    .confirm-match-card__meta {
        justify-content: center;
    }

    .confirm-match-card__winner {
        text-align: center;
    }

    .confirm-match-card__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .confirm-match-btn,
    .reject-match-btn,
    .pending-match-edit-btn {
        width: 100%;
        min-height: 48px;
    }
}




/* ==========================
CONFIRM MATCH CARD — COMPACT PLAYERS LINE
========================== */

.confirm-match-card__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    text-align: initial;
}

.confirm-match-card__score {
    order: 0;
    text-align: center;
    font-size: 34px;
    line-height: 1;
    white-space: nowrap;
}

.confirm-match-card__score::before {
    margin-bottom: 6px;
    font-size: 11px;
}

.confirm-match-card__player {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.confirm-match-card__player:first-child {
    align-items: flex-start;
    text-align: left;
}

.confirm-match-card__player:last-child {
    align-items: flex-end;
    text-align: right;
}

.confirm-match-card__player strong {
    font-size: 18px;
    line-height: 1.1;
}

.confirm-match-card__player span {
    font-size: 13px;
    line-height: 1.2;
}

.confirm-match-card__meta {
    margin-top: 16px;
}

.confirm-match-card__winner {
    margin-top: 14px;
    padding: 13px 16px;
}

.confirm-match-card__actions {
    margin-top: 16px;
}



/* ==========================
CONFIRM MATCH CARD — MOBILE COMPACT
========================== */

@media (max-width: 768px) {

    .confirm-match-card {
        padding: 18px 14px;
        border-radius: 20px;
    }

    .confirm-match-card__status {
        margin-bottom: 14px;
        min-height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }

    .confirm-match-card__top {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        text-align: initial;
    }

    .confirm-match-card__score {
        order: 0;
        font-size: 32px;
        line-height: 1;
        text-align: center;
        white-space: nowrap;
    }

    .confirm-match-card__score::before {
        margin-bottom: 5px;
        font-size: 10px;
    }

    .confirm-match-card__player {
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
    }

    .confirm-match-card__player:first-child {
        align-items: flex-start;
        text-align: left;
    }

    .confirm-match-card__player:last-child {
        align-items: flex-end;
        text-align: right;
    }

    .confirm-match-card__player strong {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .confirm-match-card__player span {
        max-width: 100%;
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .confirm-match-card__meta {
        margin-top: 14px;
        gap: 8px;
        justify-content: center;
    }

    .confirm-match-card__meta span {
        min-height: 30px;
        padding: 0 12px;
        font-size: 12px;
    }

    .confirm-match-card__winner {
        margin-top: 12px;
        padding: 13px 14px;
        font-size: 14px;
        text-align: center;
    }

    .confirm-match-card__actions {
        margin-top: 16px;
        gap: 10px;
    }

    .confirm-match-btn,
    .reject-match-btn,
    .pending-match-edit-btn {
        width: 100%;
        min-height: 48px;
        font-size: 14px;
    }
}







.password-page {
    padding: 40px 0 60px;
    background: #f7f8fb;
}

.password-card {
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 14px 40px rgba(20, 30, 50, 0.08);
    border: 1px solid rgba(20, 30, 50, 0.06);
}

.password-card__head {
    margin-bottom: 24px;
}

.password-card__head h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    color: #16181d;
}

.password-card__head p {
    margin: 0;
    font-size: 15px;
    color: #69707d;
}

.change-password-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.change-password-form__group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.change-password-form__group label {
    font-size: 14px;
    font-weight: 700;
    color: #222631;
}

.change-password-form__group input {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    border: 1px solid #dde1e8;
    background: #ffffff;
    padding: 0 15px;
    font-size: 16px;
    color: #16181d;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.change-password-form__group input:focus {
    border-color: #ff7a00;
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.12);
}

.change-password-form__hint {
    font-size: 13px;
    color: #7b8290;
}

.change-password-form__btn {
    margin-top: 6px;
    height: 50px;
    border: none;
    border-radius: 16px;
    background: #ff7a00;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.change-password-form__btn:hover {
    background: #f06f00;
    box-shadow: 0 10px 24px rgba(255, 122, 0, 0.25);
    transform: translateY(-1px);
}

.password-message {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 700;
}

.password-message--success {
    background: #eaf8ef;
    color: #18723b;
}

.password-message--error {
    background: #fff0f0;
    color: #b42318;
}

.password-message--warning {
    background: #fff7e8;
    color: #9a5b00;
}

@media (max-width: 640px) {
    .password-page {
        padding: 24px 0 40px;
    }

    .password-card {
        border-radius: 20px;
        padding: 22px;
    }

    .password-card__head h1 {
        font-size: 24px;
    }
}





.profile-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 14px;
    background: #f3f5f8;
    color: #222631;
    font-weight: 700;
    text-decoration: none;
}

.profile-action-link:hover {
    background: #ff7a00;
    color: #ffffff;
}