:root {
    --primary-fantasy-color: #0232ff;
    --secondary-fantasy-color: #00004b;
}

.fRoundCarouselContainer {
    margin: 0 40px 30px;
}

#joomsport-container .fRoundCarousel {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fRoundCarousel li {
    border: 1px solid #e0e0e0;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
}

.fRoundCarousel li.fRoundActive {
    background-color: #66bb6a;
    border-color: #66bb6a;
    color: #ffffff;
}

.fRoundCarousel_round {
    font-size: 16px;
    font-weight: 700;
}

.fRoundCarousel_points {
    font-size: 16px;
    font-weight: 700;
}

/* Pitch */
.fantasySquad {
    margin-bottom: 30px;
}

.fantasySquadHeader {
    margin-bottom: 30px;
}

.fantasySquadHeaderInfo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}

.fantasySquadHeaderWarn {
    display: none;
    margin: 20px 20px 0;
    border-left: 2px solid #f0c100;
    padding: 15px;
    background-color: #fcf9e7;
    color: #757575;
}

.fantasySquadWrapper {
    position: relative;
    border-radius: 20px;
    padding: 30px 20px;
    background-color: #1b5e20;
    background: linear-gradient(90deg, rgba(27, 94, 32, .85) 0, #1B5E20 10%, #1B5E20 90%, rgba(27, 94, 32, .85) 100%);
    overflow: hidden;
}

.fantasySquadWrapper__loading:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(117, 117, 117, .5);
    backdrop-filter: blur(2px);
    z-index: 2;
}

.fantasySquadWrapper__loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 50px;
    aspect-ratio: 1;
    margin-top: -25px;
    margin-left: -25px;
    border-radius: 50%;
    background: radial-gradient(farthest-side, #fff 94%, #0000) top / 8px 8px no-repeat, conic-gradient(#0000 30%, #fff);
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 8px), #000 0);
    animation: spin 1s infinite linear;
    z-index: 3;
}

.fantasySquadMain {
    margin-bottom: 20px;
}

.fantasySquadBench {
    min-height: 130px;
    margin: 0 -20px;
    padding-top: 10px;
    border-top: 2px dashed rgb(255, 255, 255, .15);
    background: url('../img/soccer-bench_seat.svg') center bottom repeat-x;
    background-size: contain;
}

#fantasySquadFormation {
    display: flex;
    flex-direction: column-reverse;
    gap: 25px;
    padding: 40px 0 15px;
    background: url('../img/soccer-pitch.svg') center bottom no-repeat;
    background-size: contain;
}

.fantasySquadFormationPosition {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 30px;
}

.fantasyChPlayer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    min-width: 100px;
    min-height: 120px;
    line-height: 1;
    text-align: center;
    color: #ffffff;
}

.fantasyChPlayer:before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 2px;
    right: 2px;
    height: 2px;
    border-radius: 25px;
    background: linear-gradient(90deg, rgba(217, 217, 217, 0) 0, #000 35%, #000 65%, rgba(217, 217, 217, 0) 100%);
    filter: blur(2px);
    opacity: .3;
    pointer-events: none;
}

.fantasyChPlayer__notSelected {
    border: 1px solid #fff;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, .4);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    overflow: hidden;
}

.fantasyChPlayer__notSelected:before {
    display: none;
}

.fantasyChPlayer__notSelected:after {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: url('../img/player_default.png') center no-repeat;
    background-size: contain;
    opacity: .5;
    pointer-events: none;
}

.fantasyChPlayerInner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
}

.fantasyChPlayerInner:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 8px 8px 0 0;
    background-color: rgba(255, 255, 255, .4);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

.fantasyChPlayer__empty .fantasyChPlayerInner:before {
    border-radius: 8px;
}

.fantasyChPlayer .tfItemPhoto {
    position: relative;
    padding: 5px 5px 0;
    text-align: center;
}

.fantasyChPlayer .tfItemPhoto img {
    position: relative;
}

#joomsport-container .tfItemPhoto img {
    max-width: 75px!important;
    border: none;
    border-radius: 0;
    padding: 0;
    background: none;
}

.fantasyChPlayer .tfItemInfo {
    position: relative;
}

.fantasyChPlayer .tfItemName {
    padding: 4px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    background-color: var(--primary-fantasy-color);
}

.fantasyChPlayer .tfItemTeam {
    padding: 4px;
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    background-color: var(--secondary-fantasy-color);
}

.fantasyChPlayer .tfItemPrice {
    padding: 2px 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fdd835;
    background-color: var(--secondary-fantasy-color);
}

.fantasyChPlayer .tfItemPrice:before {
    content: '$ '
}

.fantasyChPlayer .tfItemPos {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 0;
    font-weight: 700;
    text-shadow: 0px 0px 2px rgb(0 0 0);
}

.fantasyChPlayer .tfItemPos:first-letter {
    font-size: 14px;
}

.fantasySquadMain .fantasyChPlayer .tfItemPos {
    display: none;
}

.fantasyChPlayer .tfItemCaptain {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: #424242;
    z-index: 1;
}

/* Menu */
.fantasyChPlayerMenu {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    align-content: space-around;
    width: 100%;
    height: 100%;
    border-radius: 8px 8px 0 0;
    padding: 5px;
    background-color: rgba(255, 255, 255, .3);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .5s ease;
    z-index: 1;
    pointer-events: none;
}

.fantasyChPlayerMenu__active {
    opacity: 1;
}

.fantasyChPlayerMenu__enable {
    pointer-events: auto;
}

.fantasyChPlayerMenu > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, .5);
    cursor: pointer;
}

.fantasyChPlayerMenu .tfRemPlayerInner {
    background-color: #e53935;
}

.fantasyChPlayerMenu .tfRemPlayerInner:hover {
    background-color: #ef5350;
}

.fantasyChPlayerMenu .tfCaptainPlayerInner {
    text-transform: uppercase;
    background-color: #616161;
}

.fantasyChPlayerMenu .tfCaptainPlayerInner:hover {
    background-color: #757575;
}

.fantasyChPlayerMenu .tfReplacePlayerInner {
    position: relative;
    font-size: 0;
    background-color: #ffffff;
}

.fantasyChPlayerMenu .tfReplacePlayerInner:before {
    content: '';
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 0 7px 10px 7px;
    border-color: transparent transparent #f44336 transparent;
    color: #f44336;
    transform: rotate(180deg);
}

.fantasySquadBench .fantasyChPlayerMenu .tfReplacePlayerInner:before {
    border-color: transparent transparent #4caf50 transparent;
    color: #4caf50;
    transform: rotate(0deg);
}

.fantasyChPlayerMenu .tfReplacePlayerInner:hover {
    background-color: #eeeeee;
}

/* Add card */
.fantasyChPlayer__empty {
    border: 1px solid #fff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.fantasyChPlayer__empty:after {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: url('../img/player_default.png') center no-repeat;
    background-size: contain;
    opacity: .2;
    pointer-events: none;
}

.fantasyChPlayer__empty:before {
    content: unset;
}

.fantasyChPlayer__empty:hover .fantasyChPlayerInner:before {
    background-color: rgba(255, 255, 255, .5);
}

.fantasyChPlayer__empty .fantasyChPlayerMenu {
    display: none;
}

.fantasyChPlayer__empty .ftSpanPlus {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 24px;
    z-index: 1;
}

/* Change player */
.fantasyChPlayer__disabled {
    opacity: .8;
    filter: grayscale(60%);
    pointer-events: none;
}

.fantasyChPlayer__enabled .fantasyChPlayerMenu > div:not(.tfReplacePlayerInner) {
    display: none;
}

.fantasyChPlayer__enabled .fantasyChPlayerMenu {
    align-content: flex-start;
    justify-content: flex-end;
    backdrop-filter: none;
    background-color: transparent;
    opacity: 1;
    pointer-events: auto;
}

.fantasyChPlayer__selected .fantasyChPlayerInner:before {
    background-color: rgb(255, 241, 118, .7);
}

.fantasyChPlayer__selected .fantasyChPlayerMenu .tfReplacePlayerInner:before {
    content: '−';
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
}

/* Edit squad */
.fRoundEditBtn {
    margin-top: -10px;
    margin-bottom: 10px;
    text-align: right;
}

#joomsport-container .fRoundEditBtn input {
    border: 1px solid #6c757d;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    color: #ffffff;
    background-color: #6c757d;
    cursor: pointer;
    user-select: none;
    transition: background-color .1s ease-in-out;
}

#joomsport-container .fRoundEditBtn input:hover, #joomsport-container .fRoundEditBtn input:focus {
    color: #fff;
    background-color: #5a6268;
    border-color: #545b62;
}

.fantasySquad__edit .fantasyChPlayer {
    min-height: 125px;
}

#joomsport-container .fantasySquad__edit .tfItemPhoto img {
    max-width: 65px!important;
}

.fantasySquadForm {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}

.fantasySquadFormBlock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    font-size: 20px;
}

.fantasySquadFormBlock_title {
    font-size: 16px;
    font-weight: 400;
}

.fantasySquadFormBlock .curPlayers, .fantasySquadFormBlock .curBudget {
    font-size: 24px;
    font-weight: 700;
}

#joomsport-container .fantasySquadFormBlock select {
    font-size: 16px;
    font-weight: 700;
}

/* Modal */
.fantasySquad-modal.modal {
    padding: 0;
    z-index: 10;
}

.fantasySquad-modal_header {
    border-bottom: 1px solid #eeeeee;
    padding: 20px;
}

.fantasySquad-modal_inner {
    max-height: 500px;
    margin: 15px 0;
    padding-left: 20px;
    padding-right: 5px;
    overflow: auto;
}

.fantasySquad-modal_inner table {
    width: 100%;
    table-layout: auto;
    border-spacing: 0;
    border-collapse: collapse;
}

.fantasySquad-modal_inner table tr:not(:last-child) {
    border-bottom: 1px solid #eeeeee;
}

.fantasySquad-modal_player-photo {
    width: 75px;
}

.fantasySquad-modal_player-photo img {
    max-width: 75px!important;
}

.fantasySquad-modal_player-info > div {
    padding: 0 15px;
}

.fantasySquad-modal_player-name {
    font-size: 16px;
    font-weight: 700;
}

.fantasySquad-modal_player-team {
    font-size: 14px;
    font-style: italic;
    color: #757575;
}

.fantasySquad-modal_player-pos {
    font-size: 14px;
    color: #757575;
}

.fantasySquad-modal_player-add {
    width: 70px;
    text-align: center;
}

.fantasySquad-modal_player-add input {
    width: 100%;
    border: 1px solid var(--secondary-fantasy-color);
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    color: #fdd835;
    background-color: var(--secondary-fantasy-color);
    cursor: pointer;
    user-select: none;
    transition: background-color .1s ease-in-out;
}

.fantasySquad-modal_player-add input:hover, .fantasySquad-modal_player-add input:focus {
    color: #fff;
    background-color: #5a6268;
    border-color: #545b62;
}

@keyframes spin { 
    100% { 
        transform: rotate(1turn) 
    }
}

/* Round */
.fantasyRound-date {
    width: 15%;
}

.fantasyRound-team {
    width: 35%;
}

.fantasyRound-team:not(:last-child) > .jsDivLineEmbl {
    margin-left: auto;
}

.fantasyRound-team .js_div_particName {
    padding: 0 10px;
}
.tfItemPoints{
    position: absolute;
    top:5px;
    left: 5px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 15px;
    background-color: white;
    border:2px solid green;
    font-weight: bolder;
    cursor:pointer;
    color:black;
}