/*Верхняя карусель игр*/
.carousel-2 .owl-stage {
    transition: all;
    display: flex;
    justify-content: center;
    height: 150px;
    align-items: center;
}
.carousel-2 .owl-item {
    padding: 0 10px;
}
.carousel-2 .owl-pic  {
    background: #000;
    border: 5px solid #554e4e;
    transition: all 0.4s ease;
    height: 100px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.3), 0 16px 20px rgba(0,0,0,0.2);
}
.carousel-2 .owl-item.center .owl-pic {
    opacity: 1;
    border: 8px solid #BFE2FF;
    width: 230px;
    height: 130px;
}
.carousel-2 .owl-item.center + .owl-item {
    position: relative;
}
.carousel-2 .owl-pic img {
    width: 100%;
    height: 100%;
    transition: 0.3s opacity ease, 0.3s transform ease;
    opacity: 0.6;
    object-fit: cover;
}
.carousel-2 .owl-item .owl-pic:hover img,
.carousel-2 .owl-item.center .owl-pic img {
    opacity: 1;
}

/*Статистика*/

* {font-family: Play, sans-serif;}

.page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

h2 {
    margin: 0;
    color: darkred;
}
hr {
    width: 95%;
    margin-top: 20px;
}

.statistic {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: #0d1723;
    width: 800px;
    height: 500px;
}

/*Rating block*/
.raring_block {
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    flex-wrap: nowrap;
    width: 100%;
    margin-top: 20px;
}

.raring_block .rating_count > div{
    display: grid;
    align-items: center;
    justify-items: center;
    text-decoration: none;
}

.raring_block .rating_count span {
    grid-area: 1 / 1;
    color: lawngreen;
    font-size: 40px;
    font-weight: bold;
    text-shadow: 1px 1px 13px #001414;
}
.raring_block .rating_count img {
    grid-area: 1 / 1;
    width: 100px;
    margin: 0 5px;
}

.raring_block .rating_line {
    position: relative;
}
.raring_block .rating_line img {
    width: 300px;
    height: 25px;
}
.raring_block .rating_line span {
    position: absolute;
    color: white;
    font-weight: bold;
    font-size: 30px;
    top: -10px;
}

.rating_player_box {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 350px;
}

.rating_player_box .rating_player {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    height: 40px;
}

.rating_player_box .rating_player img {
    width: 32px;
    margin: 0 5px;
}

.rating_player_box .rating_player h2 {
    margin: 0 5px;
    overflow: hidden;
    color: aquamarine;
    font-size: 32px;
    display: inline-block;
    max-width: 200px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rating_player .wrapper {
    width: 250px;
}

.rating_player #error {
    color: red;
    position: absolute;
    width: 500px;
    text-align: center;
    left: -66px;
    top: -20px;
    text-shadow: #000 1px 0 1px;
}

#player_nick_input {
    display: none;
}

.rating_player input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    width: 100%;
    font-size: 32px;
    color: aquamarine;
    text-align: center;
    font-weight: bold;
}

.image_selected {
    filter: drop-shadow(0px 0px 0.9rem white);
}

.image_selected:hover {
    filter: drop-shadow(0px 0px 0.1rem white);
}

/*Match block*/

.match_block {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    width: 97%;
}

.match_block .match_item {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    background: white;
    border: 2px solid #BFE2FF;
    width: 100px;
    height: 150px;
    margin: 0 5px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.3), 0 16px 20px rgba(0,0,0,0.2);
    justify-content: space-between;
    font-weight: bold;
}

.match_block .match_item .match_win {
    width: 100%;
    text-align: center;
    margin: 5px 0;
    height: 12px;
}

.match_block .match_item img {
}

.match_block .match_item .map_name {
    width: 96px;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}


#tooltip_window {
    z-index: 9999; position: absolute; display: none; top:0px; left:0px; width: 200px;
    background-color: #fff; padding: 5px 10px 5px 10px;
    color: #000; border-radius: 5px; box-shadow: 0 1px 2px #555;
    text-align: center; white-space: normal; word-wrap: break-word;
}
#tooltip_window h4 {color: red; font-size: 16px;}


.btn_auth {
    text-align: center;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
    border-radius: 10px;
    background-image: linear-gradient(to right, #7b7b7b 0%, #2b2a2a 51%, #7b7b7b 100%);
    font-size: 20px;
    padding: 2px 100px;
}

.btn_auth:hover {
    background-position: right center;
}

.rating_list {
    margin-top: 30px;
}

.rating_list > div {
    background-color: #0f263a;
}


.player_list .player_select {
    background-color: darkgray;
}

.player_list > div {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    color: white;
    height: 34px;
    background: #0e1726;
    margin: 1px 0;
}

.rating_player .title {
    width: 100%;
    font-size: 24px;
    color: wheat;
    margin: 15px;
    text-align: center;
    font-weight: 600;
}

.rating_player .rating_list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    width: 100%;
}

.rating_player .rating_menu {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    height: 125px;
}

.left_column_box {
    width: 30%;
}

.season_list {
    margin: 0 10px;
    color: white;
}

.season_list h3 {
    margin: 0 0 5px 0;
}

.season_list img {
    width: 220px;
    height: 60px;
}

.season {
    position: relative;
    margin-bottom: 5px;
}

.season_name {
    position: absolute;
    bottom: 0;
    margin: 3px 5px;
    color: black;
    font-weight: 600;
    text-shadow: 0 0 7px white;
}

.season_player_rating {
    position: absolute;
    top: 0;
    right: 0;
    margin: 5px;
    color: aqua;
    font-weight: 600;
    text-shadow: 0 0 7px black;
}

.season_select {
    box-shadow: 0px 0px 9px 3px aqua;
}

.rating_player .top_list {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: hidden;
}

.top_list_item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    flex-direction: row;
    margin: 10px;
}
.top_list_item div {
    margin: 0 10px;
    overflow: hidden;
    color: aquamarine;
    font-size: 20px;
}

.rating_player .top_list img {
    width: 64px;
}

.rating_player .player_list_box {
    display: flex;
    height: 470px;
    width: 63%;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.player_list {
    margin: 10px 10px 30px 10px;
}

.player_list .player_place {
    background-color: red;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: black;
    margin: 0 10px;
    padding: 0 5px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.player_list .player_place > div {
    margin-left: 5px;
}
.player_list .player_place > img {
    height: 10px;
}

.player_nick {
    margin: 0 5px;
    display: inline-block;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



.player_rating_count {
    background-color: #304061;
    height: 100%;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player_rating_count > span {
    font-size: 14px;
    font-weight: bold;
}

.player_list_pagination {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    color: wheat;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding-left: 0;
    list-style: none;
    border-radius: .25rem;
    margin: .5rem;
}

.page_link:hover {
    border-color: purple;
    color: #ffffff;
}


.pagination .page_link:hover {
    border: 1px solid rgba(187, 201, 224, .8);
    color: #ffffff;
}

.pagination .page_link {
    border-radius: 5px;
    display: block;
    font-size: .9rem;
    font-weight: 500;
    padding: .25rem .75rem;
    background-color: #0e1726;
    border: 1px solid rgba(187, 201, 224, .3);
    margin-right: .25rem;
    text-decoration: none;
    color: #e5ebef;
    word-break: break-all;
    cursor: pointer;
}

.pagination .current_page {
    border: 1px solid rgba(187, 201, 224, .6);
}

.rating_menu_box {
    width: 100%;
    margin: 10px;
}

.rating_menu_box h3 {
    font-size: .95rem;
    font-weight: 500;
    text-align: left;
    color: rgba(255, 255, 255, .8);
    margin: 3px 2px;
}

.rating_menu_box select {
    font-family: ubuntu, sans-serif;
    color-scheme: dark;
    width: 100%;
    background-color: #273552;
    color: #e5ebef;
    border: 1px solid #0e1726;
    border-radius: 4px;
    padding: 5px;
    position: relative;
}


#active_match {
    position: absolute;
    left: 323px;
    z-index: 5;
    top: 262px;

}

#active_match .match_item {
    width: 140px;
    height: 210px;
    border: 2px solid #6f1407;
    margin: 0 5px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3), 0 16px 20px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;


}

.active_match_text {
    text-align: center;
    font-size: 25px;
    color: #ff0404;
    -webkit-text-stroke: 1px #000000;
    text-stroke: 1px #FFFFFF;
}


.page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

h2 {
    margin: 0;
    color: darkgray;
}

.auth-form {
    width: 500px;
    height: 480px;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

#error {
    color: red;
}

#create-login {
    color: darkred;
    size: 14px;
}


.loader {
    width: 50px;
    --b: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 1px;
    background: conic-gradient(#0000 10%,#f03355) content-box;
    -webkit-mask:
            repeating-conic-gradient(#0000 0deg,#000 1deg 20deg,#0000 21deg 36deg),
            radial-gradient(farthest-side,#0000 calc(100% - var(--b) - 1px),#000 calc(100% - var(--b)));
    -webkit-mask-composite: destination-in;
    mask-composite: intersect;
    animation:l4 1s infinite steps(10);
}
@keyframes l4 {to{transform: rotate(1turn)}}

#loader_box {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 9999;
    background: rgb(255 255 255 / 50%);
}

.center_loader_box {
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
}

/* ================================================================= */
/* Управление командой */
.team-management {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: #0d1723;
    width: 800px;
    height: 500px;
}

.team-management-container {

    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: #0d1723;
    width: 800px;
    height: 500px;
    
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.team-members .member-item {
    background: #2a3b4d;
    display: flex;
    justify-content: space-between;
}

#team_name {
    color: aquamarine;
    margin-right: 60px;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Модальное окно */
.modal {
    display: none;
    position: absolute;
    z-index: 1;
    width: 800px; 
    height: 500px;
    background-color: rgba(0, 0, 0, 0.7);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-content {
    background-color: #1a2433;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    border-radius: 8px;
    color: white;
}

.close-button {
    color: white;
    float: right;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: red;
}

.team-search-list {
    max-height: 400px;
    overflow-x: auto;
}

#team_page {
    width: 41px;
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#team_page img {
    width: 41px;
    height: 41px;
    object-fit: contain;
}


.searching {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #2a2e35;
    border-radius: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.find-button {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.search-time {
    color: lightgray;
    min-width: 80px;
    display: inline-block;
    text-align: center;
}

/* Улучшаем выравнивание элементов в строке списка игроков */
.player_list > div {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start; /* Изменено с space-between для лучшего выравнивания */
    align-items: center;
    color: white;
    height: 34px;
    background: #0e1726;
    margin: 1px 0;
    padding: 0 5px;
}

/* Добавляем автоматический отступ перед рейтингом, чтобы он был справа */
.player_rating_count {
    margin-left: auto;
    background-color: #304061;
    height: 100%;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-item {
    margin: 0 2px;
}

.page_link {
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid #304061;
    border-radius: 3px;
    background-color: #1a2335;
    color: #ddd;
}

.current_page {
    background-color: #304061;
    color: white;
    font-weight: bold;
}

/* Стили для иконок клубов в списке игроков */
.player_list > div > div[style*="width: 32px"] {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}

/* Убедимся, что изображения клубов правильно отображаются */
.player_list > div > div[style*="width: 32px"] img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

/* Стиль для контейнера логотипа клуба */
.club-logo {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}

/* Стиль для изображения логотипа клуба */
.club-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
} 

/* Еще более компактный вариант по вертикали */
.player_place {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    min-width: 40px;
    height: 20px; /* Еще меньше высота */
    padding: 0 3px; /* Минимальный padding */
    border-radius: 6px; /* Меньший радиус */
}

.player_place > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    text-align: center;
    font-size: 0.95em; /* Еще меньше шрифт */
    line-height: 1;
    margin-left: 2px !important;
}

.player_place > img {
    width: 20px; /* Уменьшаем иконку */
    height: 12px;
    margin-left: 1px;
    margin-right: 4px;
}