:root {
    --profile-pad: 24px;
    --profile-gap: 24px;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.profile {
    display: flex;
    flex-direction: column;
    gap: var(--profile-gap);
    /* margin-bottom: var(--profile-pad); */
    margin-bottom: 60px;
    /* min-height: 272px; */
    min-height: 145px;
    padding: var(--profile-pad) var(--profile-pad) 0;
    /* box-shadow: 0 4px 8px 0 #3E10101A; */
    box-shadow: 0 4px 8px 0 var(--box-shadow-color);
    border-radius: 6px;
}

.profile.-league{
    padding-bottom: var(--profile-pad);
}

.profile__top{
    flex-grow: 1;
}

.profile *{
    box-sizing: border-box;
}

.profile__wrap {
    position: relative;
    display: flex;
    /* justify-content: space-between; */
    gap: var(--profile-gap);
}

.profile__image {
    flex-shrink: 0;
    grid-area: image;
    display: inline-flex;
    justify-content: center;
}

.profile__summary{
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: var(--profile-gap);
}

.profile__edit-button{
    position: absolute;
    top: 0; right: 0;
}

.profile__image-img {
    width: 100%;
    object-fit: cover;
}

.profile-section{
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 60px;
}
.profile-section .sub-heading{
    padding-bottom: 8px;
    font-family: 'Opinion Pro', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 132%;

    text-transform: none;
}

.profile__info, .profile__info_d {
    display: flex;
    flex-direction: column;
    gap: var(--profile-gap);
    flex: 1;
}

.profile__info_m {
    display: none;
    flex-direction: column;
    gap: var(--profile-gap);
    flex: 1;
}

.profile__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--profile-gap);
}

.profile__header .sub-heading {
    margin-top: 10px;
    width: 100%;
    white-space: nowrap;
}

.profile__stats {
    padding-right: var(--profile-pad);
    grid-area: stats;
}

.profile__action, .profile__action_d {
    display: flex;
    flex-wrap: wrap;
    grid-area: action;
    /*flex-direction: column;*/
    justify-content: right;
    padding-right: var(--profile-pad);
    gap: 20px;
}

.profile__action_m {
    display: none;
    flex-direction: column;
    gap: 20px;
    /*justify-content: right;*/
}

.profile__action_m > .button {
    width: 100%;
}

.profile__action-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.profile__action-group > * {
    width: 100%;
}

.profile__heading{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile__title{
    display: flex;
    flex-direction: column;
    /* padding-bottom: 4px; */
    gap: 4px;
    font-family: 'Opinion Pro', sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 120%;

}
.profile__title__underline{
    width: 70px;
    height: 2px;
    background: #FF2424;
}
/* .profile__title {
    font-weight: 800;
    font-size: 25px;
    margin: 0 0 10px 0;
    display: flex;
    justify-content: space-between;
} */

.profile__attributes{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0;
}
.profile-attribute{
    display: flex;
    align-items: center;
    gap: 4px;
    /* padding: 8px 0; */

    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;

}
.profile-attribute__property{
    display: flex;
    align-items: center;
    gap: 4px;

    color: #888888;
}
.profile-attribute__property .svg-icon{
    width: 16px;
    height:16px;

    color: #AAAAAA;
}

.profile-attribute__value{
    color: #333333;
}

.profile__links{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--profile-gap);
    padding: 12px 0;
}

.profile-link{
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    /* padding: 8px 0; */

    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;


    color: #333333;
    text-decoration: none;
}
.profile-link:hover,
.profile-link:hover .svg-icon{
    color: #FF2424;
}

.profile-link .svg-icon{
    width: 18px;
    height:18px;
    color: #333333;
}

.profile__description{
    flex-grow: 1;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 148%;

    color: #888888;
}

.profile__description .js-toggleable-text__button{
    display: none;
    margin: 0 auto;
}

.profile__actions{
    display: flex;
    gap: 12px;
}

.profile__tab-headers{
    display: flex;
    gap: 16px;
}
.profile-tab-header{
    display: flex;
    flex-direction: column;
    gap: 17px;
    font-family: 'Opinion Pro', sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 124%;

    text-align: center;
    text-decoration: none;
    
    color: #888888;
    cursor: pointer;
}
.profile-tab-header span{
    padding: 20px 24px 0;
}
.profile-tab-header.-active{
    color: #333333;
}
.profile-tab-header:after{
    content: '';
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: transparent;
}
.profile-tab-header.-active:after{
    background: #FF2424;
}

.profile__leagues {
    /* gap: 20px 0; */
    gap:0;
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.profile__league {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #E0E0E0;
    color: #333333;
    text-align: center;
    text-decoration: none;
}

.profile__league-img {
    flex-shrink: 0;
    margin-right: 10px;
}

.profile__league-name {

}

.profile__create-desc {
    font-size: 14px;
    line-height: 150%;
    color: #888;
    font-weight: 400;
    margin-bottom: 40px;
}

.tabs {
    display: flex;
    width: 100%;
    max-width: 100%;
    border-bottom: 1px solid #c4c7cf;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.tabs__tab {
    position: relative;
    bottom: -1px;
    display: inline-flex;
    min-width: 0;
    /*/ / height: 32 px;*/
    color: #333333;
    border: 1px solid transparent;
    border-radius: 6px 6px 0 0;
    background: 0 0;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    user-select: none;
    box-sizing: border-box;
    padding: 0;
    box-shadow: none;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    outline: 0;
    text-align: center;
    vertical-align: middle;
    font-family: inherit;
    cursor: pointer;
}

.tabs__tab.-active {
    border-color: #c4c7cf;
    border-bottom-color: transparent;
    flex-shrink: 0;
    background: #ffffff;
}

.tabs__tab[disabled] {
    opacity: 0.3;
    cursor: none;
    pointer-events: none;
}

.tabs__tab-text {
    margin: 5px 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    font-size: 18px;
    line-height: 142%;
    font-weight: 500;
}

.tabs__page-wrapper {
    padding-top: 30px;
}

.tabs__page {
    display: none;
}

.tabs__page.-active {
    display: block;
}

.player__about {
    margin-bottom: 30px;
}

.player__img-small {
    margin-bottom: 0;
}

@media (max-width: 1120px) {
    /*:root {*/
    /*    --profile-pad: 20px;*/
    /*    --profile-gap: 10px;*/
    /*}*/
    .profile__header .sub-heading {
        display: none;
    }
}

@media (max-width: 850px) {

    :root{
        --profile-pad: 14px;
        --profile-gap: 12px;
    }

    .profile {
        /* box-shadow: none; */
        /* padding: 0; */
    }

    .profile__wrap{
        flex-direction: column;
        /* gap: 12px; */
    }
    .profile__title{
        text-align: center;
        align-items: center;
        font-size: 22px;
        line-height: 128%;

    }

    .profile__attributes{
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .profile__edit-button span{
        display: none;
    }
    .profile__edit-button .svg-icon{
        width: 20px;
        height:20px;
    }

    .profile__description .js-toggleable-text__text{
        display: none;
    }

    .profile__description .js-toggleable-text__button{
        display: flex;
    }

    .profile__description.is--toggled .js-toggleable-text__text{
        display: block;
    }

    .profile__description .js-toggleable-text__button{
        margin: 0 a;
    }

    .profile-header {
        flex-direction: column;
        /* align-items: center; */
    }

    .profile__actions {
        flex-direction: column;
    }

    .profile__image {
        gap: 30px;
    }

    .profile__action_d {
        display: none;
    }

    .profile__action_m {
        display: flex;
    }

    .profile__info_d {
        display: none;
    }

    .profile__info_m {
        display: flex;
    }


}

@media (max-width: 600px) {
    /*.profile {*/
    /*    grid-template-areas:*/
    /*            "image"*/
    /*            "action"*/
    /*            "info";*/
    /*}*/
    /*.profile__image-img {*/
    /*    height: 150px;*/
    /*}*/
    /* .profile__wrap {
        gap: 10px;
    } */

    .profile__action_m {
        gap: 10px;
    }
}

/*//.profile {*/
/*//    display: flex;*/
/*//}*/
/*//*/
/*//.profile__photo {*/
/*//    margin-right: 60px;*/
/*//}*/
/*//*/
/*//.profile__form {*/
/*//    width: 100%;*/
/*//}*/
/*//*/
/*//.profile__form-img {*/
/*//    font-weight: normal;*/
/*//    line-height: 40px;*/
/*//}*/
/*//*/
/*//.profile__form-img a {*/
/*//    display: block;*/
/*//}*/
/*//*/
/*//.profile__create {*/
/*//    text-align: center;*/
/*//}*/
/*//*/
/*//*/
/*//.profile__leagues {*/
/*//    gap: 20px 0;*/
/*//    display: flex;*/
/*//    flex-direction: column;*/
/*//    margin-bottom: 40px;*/
/*//}*/
/*//*/
/*//.profile__league {*/
/*//    display: flex;*/
/*//    align-items: center;*/
/*//    padding: 10px;*/
/*//    border: 1px solid #E0E0E0;*/
/*//    color: #333333;*/
/*//    text-align: center;*/
/*//    text-decoration: none;*/
/*//}*/
/*//*/
/*//.profile__league-img {*/
/*//    flex-shrink: 0;*/
/*//    margin-right: 10px;*/
/*//}*/
/*//*/
/*//.profile__league-name {*/
/*//*/
/*//}*/
/*//*/

/*//*/
/*//@media (max-width: 700px) {*/
/*//    .profile {*/
/*//        flex-direction: column;*/
/*//    }*/
/*//*/
/*//    .profile__photo {*/
/*//        margin-right: 0;*/
/*//        margin-bottom: 40px;*/
/*//    }*/
/*//*/
/*//    .profile {*/
/*//        grid-template-columns: auto;*/
/*//    }*/
/*//}*/