/* Загальний стиль */
body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #1f1c2c, #625b8c);
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.matches-section{text-align: center; margin: 20px auto; margin-right: 50px;}
/* Меню навігації */
.limatch{
    background: #222; border: 1px solid #ff4081; border-radius: 10px; width: 70%; text-align: center; margin: 10px auto; padding: 10px; position: relative;
}
.logos{
    width: 200px; height: 200px; object-fit: contain; position: absolute; margin-right: 10px; right: 0; top: 10%; border: solid 1px #ff4081;
}
.logomin{
   display: none;
}
.team-names{
    position: absolute; right: 60px; top: 50%; transform: translateY(-50%); color: #fff; font-size: 17px;
}
.team-names1{
    position: absolute; left: 60px; top: 50%; transform: translateY(-50%); color: #fff; font-size: 17px;
}
.team-count2{
     position: absolute; right: 220px; top: 50%; transform: translateY(-50%); color: #fff; font-size: 18px;color: #ff4081;
}
.team-count1{
    position: absolute; left: 220px; top: 50%; transform: translateY(-50%); color: #fff; font-size: 18px;color: #ff4081;
}
.flag-container{
    position: absolute; width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: solid 1px #ff4081; margin-left: 10px;
}
.flag-mini{
   display: none;
}#team-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
   width: 98%;
    padding: 16px;
  }
  
  .team-card {
    
    transition: transform 0.2s ease-in-out;
  }
  
  .team-card:hover {
    transform: scale(1.05);
  }
.liach{
    background: #333; padding: 15px; border: 1px solid #ff4081; border-radius: 10px;margin: 5px; width: 180px; text-align: center; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.liachs{
     padding: 15px;  border-radius: 10px; width: 180px; text-align: center; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.imgplayer{
    width: 150px; height: 150px; object-fit: contain; margin-bottom: 5px;
}
.flagimg{
    display: none;
}
.menu {
    display: flex;
    background: rgba(31, 28, 44, 0.85);
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 2px 4px 10px rgba(255, 111, 145, 0.4); /* імітація розмитої межі */
}

.menuph {
    display: none;
    background: rgba(31, 28, 44, 0.85);
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(255, 111, 145, 0.4); /* імітація розмитої межі */
}

.menu-list {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.menu-list li a {
    color: #f0f0f0;
    font-weight: 600;
    font-size: 17px;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.menu-list li a:hover,
.menu-list li a.active {
    background-color: #ff6f91;
    color: #fff;
}

/* Логотип */
.logo {
    height: 50px;
    cursor: pointer;
  
}
.ranking{
        margin-left: 5.5px;
}
.logo:hover {
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .matches-section{
        text-align: center;
         margin: 20px auto; 
        
    }
    
    .menuph{
        display: flex;
    }
  
    .imgplayer{
        width: 180px; height: 180px; object-fit: contain; margin-bottom: 5px;
    }
    .liach{
        background: #333; padding: 15px; border: 1px solid #ff4081; border-radius: 10px; width: 135px; text-align: center; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }.liachs{
       display: none;
    }
    .flag-container{
         width: 80px; height: 80px; border-radius: 50%;  border: solid 1px #ff4081; margin-left: 10px; display: inline-block;
    }
    .limatch{
        background: #222; border: 1px solid #ff4081; border-radius: 10px; width: 95%; height: 80px; text-align: center; margin: 10px auto; padding: 10px; position: relative;
    }.logos{
        display: none;
    }
    .flag-mini{
        display: inline-block;width: 30px; height: 30px; border-radius: 50%;  border: solid 1px #ff4081;overflow: hidden;
     }
     .flagimg {
        object-fit: cover; /* Зображення повністю займає контейнер без чорних ліній */
        width: auto; /* Ширина заповнює контейнер */
        height: 160%; /* Висота заповнює контейнер */
        display: block; /* Коректне відображення як блочного елемента */
        border-radius: 50%; /* Робить зображення круглим */
        overflow: hidden; /* Обрізає зайві частини за межами контейнера */
        margin: auto; /* Центрує прапор у контейнері */
        transform: translate(-15%, -20%);
     }
    .team-names{
        display: none;
    }
    .logomin{
        width: 30px; height: 30px; margin-left: 8px ; display: inline-block;
        object-fit: contain;
    }
    .team-names1{
        display: none;
    }
    .team-count2{
        position: absolute; right: 60px; top: 60%; transform: translateY(-50%); color: #fff; font-size: 18px;color: #ff4081;
   }
   .team-count1{
       position: absolute; left: 60px; top: 60%; transform: translateY(-50%); color: #fff; font-size: 18px;color: #ff4081;
   }
   .menu{
    display: none;
}
.content {
    margin-left: 0; /* Відступ для уникнення накладання */
}
  }

  .footer{
    border-top: #ff4081 1px solid;
    text-align: center;
   
    position: relative;
    
}
.footer li{
    display: inline;
    margin: 0 15px;

}
.footer-content p {
    display: flex; /* Aligns text and logo in a single line */
    align-items: center; /* Vertically aligns text and logo */
    justify-content: center; /* Centers content horizontally, if needed */
    
}

.footer-logo {
    height: 20px; /* Maintains the height of the logo */
    margin-left: 5px; /* Adds spacing between the text and the logo */
    vertical-align: middle; /* Ensures better alignment with text */
}
.footer-content nav ul li a {
    text-decoration: none;
    color: #fff;
}
.footer-content nav ul li a:hover {
    color: #ff4081; /* Hover effect matching design */
}.footer-content nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.logo img {
    height: 40px; /* Фіксована висота логотипу */
}


/* Заголовок */
.content h1 {
    text-align: center;
    margin: 20px 0;
    color: #ffeb3b;
}

/* Контейнер результатів */
.results-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

/* Карточка матчу */
.match-card {
    position: relative; /* Встановлює контейнер для абсолютного позиціонування */
    background-color: #1e1e2e;
    border: 1px solid #ff4081;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    padding: 15px;
    width: 280px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}


.match-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.9);
}

/* Команда */
.team {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.team img.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;

}

.team p {
    margin: 0;
    font-size: 16px;
    color: #f1f1f1;
}
.live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4081;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
}
.match-card {
    position: relative;
}

.team-score {
    position: absolute;
    right: 15px; /* Розташування праворуч */
    color: #ff4081; /* Колір відповідає бейджу LIVE */
    font-weight: bold;
    font-size: 19px;
}
.team-score2 {
    position: absolute;
    right: 15px; /* Розташування праворуч */
    color: #ff4081; /* Колір відповідає бейджу LIVE */
    font-weight: bold;
    font-size: 19px;
}



.live-results {
    margin-top: 10px;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.live-results ul {
    list-style: none;
    padding: 0;
}
.live-results li {
    margin: 5px 0;
}



/* Секція проти (VS) */
.vs {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #ff4081;
    margin: 15px 0;
}

/* Деталі матчу */
.details {

    text-align: center;

    color: #bdbdbd;
}



/* Логотип турніру */
.tournament-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tournament-logo img.logo {
    
    object-fit: cover;
   
}

.tournament-logo h3 {
    margin: 0;
    font-size: 18px;
    color: #f1f1f1;
}


.game-date {
    font-size: 16px;
    font-weight: bold;
    color: #4caf50;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    background-color: #f1f8e9;
    border-radius: 5px;
    width: fit-content;
}

.game-date .icon {
    font-size: 18px;
    color: #4caf50;
}

.live-info {
    font-size: 18px;
    font-weight: bold;
    color: #ff4081;
    background-color: #ffe6eb;
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
}
.wrapper {
    display: flex;
}

.sidebar {
    
    padding-left: 5px;
    background-color: #1f1f1f;
    border-right: 1px solid #ff4081;
    scrollbar-width: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 10.5%;
        height: 100%;
        overflow-x: hidden;
        z-index: 10; /* Додаємо рівень */
    
}
.sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Edge, Safari */
}

.content {
    margin-left: 11%; /* Відступ для уникнення накладання */
}

.sidebar h2 {
 padding-right: 5px;
  color: #ff4081;}

.sidebar ul {
    list-style-type: none;
    padding: 0;

}

.sidebar ul li {
    margin-bottom: 10px;
}
#team-list {
    display: flex;
    flex-direction: column; /* Елементи розташовуються вертикально */
    align-items: flex-start; /* Вирівнювання по лівому краю */
    list-style: none; /* Видаляємо маркери списку */
    padding: 0; /* Видаляємо внутрішні відступи */
    margin: 0; /* Видаляємо зовнішні відступи */
}

#team-list li {
    display: flex; /* Робимо елементи списку горизонтальними */
    align-items: center; /* Центруємо елементи вертикально всередині */
    margin-bottom: 10px; /* Відступ між елементами */
}

#team-list img {
    width: 30px; /* Фіксована ширина логотипів */
    height: 30px; /* Фіксована висота логотипів */
    object-fit: contain; /* Зберігає пропорції без обрізання */
    margin-right: 10px; /* Відступ між логотипом і текстом */
}

.round-score {
  font-size: 1em;
  color: gray;
  margin-left: 10px;
}


.team-name {
    margin: 0;
    font-size: 16px;
    color: #f1f1f1;
    text-decoration: none;
}

.map-status-container {
    display: flex; /* Елементи в ряд */
    gap: 10px; /* Відступи між елементами */
    justify-content: center; /* Центруємо весь блок */
    align-items: center; /* Вирівнюємо по вертикалі */
    padding: 5px; /* Відступи всередині контейнера */

}

.map-status {
    font-size: 16px; /* Зручний розмір тексту */
    font-weight: bold; /* Виділяємо текст */
    text-align: center; /* Вирівнювання тексту всередині елемента */
    min-width: 50px; /* Фіксована ширина для однакового розміру */
}
.invert-colors {
  filter: invert(1); /* Інверсія кольорів */
}


@media (max-width: 992px) {
    

    .menu {
        display: none;
    }

    .menuph {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .sidebar {
        display: none;
    }

    .content {
        padding: 0px;
        margin-left: 0px;
        margin-right: 10px;
        width: 100%
    }

    .match-card {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .menu {
        display: none;
    }

    .menuph {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .sidebar {
        display: none;
    }

    .logo {
        height: 40px;
    }

    .team img.logo {
        width: 30px;

        height: 50px;
    }

    .match-card {
        padding: 18px;
        padding-top: 2px;
                height: 200px;
    }
    .tournament-logo img.logo {
        width: 25px;
    }
    .tournament-logo h3 {
        font-size: 14px;
    }
    .vs{margin: 0;}
    .details{
                text-align: right;
              
    }
    .details p{
          margin-top: -30%;
    }
}