/* Основной фон страницы */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    margin: 0;
}

.hidden {
    display: none !important;
}

.upcome {
    font-size: 12px;
    color: #fff;
    font-style: italic;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 800;
    margin: 22px 0 16px;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0;
}

.league-container {
    margin-bottom: 18px;
    padding: 0 0 2px;
}

.sidelig {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    padding: 0 6px;
}

.league-logo {
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 2px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.titlig,
.titlige {
    margin: 0;
    font-size: 13px;
    font-weight: bold;
    color: #f7fbff;
    line-height: 1.2;
}

.league-table {
    background-color: #fff;
    border-radius: 6px;
    padding: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(16, 33, 46, 0.18);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    color: #111;
    font-size: 11px;
}

.standings-table th {
    color: #657482;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 2px;
    text-align: left;
}

.standings-table td {
    border-top: 1px solid #edf1f4;
    padding: 4px 2px;
}

.standing-rank,
.standing-points {
    width: 24px;
    text-align: center;
    font-weight: 700;
}

.standing-team {
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.standing-team-inner {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    white-space: nowrap;
}

.standing-team-inner span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.standings-message {
    color: #657482;
    font-size: 11px;
    margin: 0;
    padding: 4px 0;
}

.archive-empty {
    margin: 12px 0;
    padding: 14px;
    border-radius: 8px;
    background: #fff;
    color: #5a6875;
    font-size: 14px;
    text-align: center;
}

.team-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e6e6e6;
}

.team-row:last-child {
    border-bottom: none;
}

.team-name {
    flex: 2;
    font-weight: bold;
    text-align: left;
}

.matches-played, 
.points {
    margin-right: 5px;
    text-align: center;
    font-weight: bold;
}

.content {
    flex: 1;
    padding: 20px;
}


.content-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.desktop-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.desktop-footer-content {
    width: min(1200px, 100%);
    background: #1d3547;
    color: #dbe7ef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(20, 33, 43, 0.12);
}

.desktop-footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: 28px;
    padding: 22px 26px 18px;
    text-align: left;
}

.desktop-footer-main h2 {
    margin: 0 0 8px;
    color: #ff8000;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
}

.desktop-footer-main p {
    margin: 0;
    max-width: 680px;
    color: #d4e0e8;
    font-size: 14px;
    line-height: 1.55;
}

.desktop-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 8px;
    align-content: center;
}

.desktop-footer-links span {
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.desktop-footer-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 14px 24px;
    background: #224f6c;
}

.desktop-footer-icons img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

.desktop-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 24px;
    background: #172836;
    color: #aebfca;
    font-size: 12px;
}
.advertisement {
    width: 15%;
    background-color: #225475;
    padding: 10px;
    margin: 0 10px;
    text-align: center;
    font-size: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 8px 8px;
}

/* Контейнер матчей */
.match-container {
    width: 60%;
    padding: 10px;
    border-radius: 8px 8px 8px 8px;
}

.filter-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#league-filter {
    padding: 5px;
    font-size: 13px;
    width: 175px;
    margin-top: 20px;
    border-radius: 8px;
}



.hidden-input {
    width: 0;
    height: 0;
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

/* Контейнер для кнопок */
.date-picker-wrapper {
    display: flex;
    justify-content: flex-end; /* Прижимаем элементы к правому краю */
    align-items: center;
    gap: 10px; /* Отступ между кнопками */
    margin-bottom: 20px; /* Отступ снизу, если необходимо */
    width: flex; /* Занимает всю ширину родительского контейнера */
    background-color: #225475; /* Фон блока, можете изменить по необходимости */
    padding: 10px; /* Внутренние отступы для содержимого блока */
    margin-bottom: 3px; /* Отступ снизу от блока матчей */
    border-radius: 8px 8px 8px 8px;
    position: relative;
    height: 40px
}

/* Общие стили для кнопок */
.date-button {
    background-color: #ffffff; /* Белый фон */
    border: 0px solid #ccc;    /* Серый контур */
    border-radius: 12px;        /* Округлённые края */
    padding: 10px 15px;
    cursor: pointer;
    font-family: inherit;
    font-size: 10px;
    color: #333;               /* Цвет текста */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, box-shadow 0.3s;
    width: 30px;
    height: 30px;
}

.date-button:hover {
    background-color: #00cccc; /* Светло-серый фон при наведении */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Лёгкая тень */
    color: #fff
}

/* Стили для кнопки с иконкой календаря */
#calendar-button {
    padding: 10px;
    background-color: #FF8000 !important;
    border: 0px solid #ccc;    /* Серый контур */
    border-radius: 12px;        /* Округлённые края */
    padding: 10px 15px;
    cursor: pointer;
    font-family: inherit;
    font-size: 10px;
    color: #333;               /* Цвет текста */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, box-shadow 0.3s;
    width: 40px;
    height: 40px;
}

.calendar-icon-img {
    width: 20px;
    height: 20px;
}

/* Стили для числа в кнопках */
.date-button .date-number {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 0px;
    line-height: 1;
}

/* Стили для дня недели */
.date-button .date-day {
    font-size: 6px;
    margin-top: 0px; 
    text-transform: uppercase; /* Преобразует текст в верхний регистр */
}

/* Дополнительные стили для кнопки "Today" */
#today-button .date-day {
    font-weight: bold;
}

.league-header {
    background-color: #225475;
    color: #fff;
    padding: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-top: 3px; /* Отступ снизу у заголовка, чтобы отдалиться от следующей таблицы */
    border-radius: 8px 8px 0 0; /* Закругляем только верхние углы заголовка */
}

.league-title {
    display: flex;
    align-items: center;
    padding-left: 11px !important;
}

.league-header img {
    width: 20px;
    height: 14px;
    margin-right: 8px;
    margin-left: 10px;
}

.sponsor-logo {
    font-size: 12px;
    color: #FF8000;
    font-weight: normal;
    padding-right: 20px !important;
}

/* Таблица матчей */
.match-table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse; /* Убирает двойные границы между ячейками */
    font-size: 13px;
    border-radius: 0 0 8px 8px; /* Закругляем только нижние углы таблицы */
    overflow: hidden; /* Обрезаем содержимое, чтобы избежать выхода элементов за границы */
}

.match-table td, .match-table th {
    padding: 5px 3px;
    border: 1px solid #ddd; /* Границы между ячейками */
    text-align: center; /* Выравнивание текста в ячейках */
}

.match-table tbody tr {
    cursor: pointer;
}

.time, .score, .ht_score, .status {
    text-align: center;
    padding: 0;
    margin: 0;
}

.team1 {
    text-align: right !important;
    padding-right: 10px !important; /* Отступ от центра для первой команды */
    width: 30%;
}

.team2 {
    text-align: left !important;
    padding-left: 10px !important;
    width: 30%;
}

.status {
    width: 7%; /* Настройте под нужный размер */
    text-align: center;
    white-space: nowrap; /* Предотвращает перенос текста */
}

.time {
    width: 7%;
}

.score {
    width: 7%;
}

.ht_score {
    width: 7%;
    color: #808080;
}


/* Ховер-эффекты */
.match-table tr.odd:not(.match-details) {
    background-color: #f2f2f2; /* Серый фон для нечетных строк */
}

.match-table tr.even:not(.match-details) {
    background-color: #ffffff; /* Белый фон для четных строк */
}
.countdown-container {
    text-align: center;
    padding: 10px 0;
}

.countdown-text {
    font-weight: bold;
    font-size: 1.2em;
    color: #ffffff;
}

.countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 1.5em;
    color: #ffffff; /* красный цвет для выделения */
}
.postponed-message {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff; /* Можно выбрать любой цвет, который подходит вашему дизайну */
    padding: 20px 0;
}
.gray-time {
    color: #808080;
}
.score-live {
    font-weight: bold;
    color: red;
}

.score-finished {
    font-weight: bold;
    color: black;
}
.red-minute {
    color: red;
    font-weight: bold;
    font-size: 0.9em;
}

.live-minute-blink {
    display: inline-block;
    animation: liveMinuteBlink 1.1s ease-in-out infinite;
}

.status {
    color: inherit; /* Базовый цвет для всех статусов */
    font-weight: normal;
}

.status.active {
    color: red;
    font-weight: bold;
    font-size: 0.9em;
}

.status.active::after {
    content: "'";
    animation: blink 1s step-start infinite;
}

.blinking-apostrophe {
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes liveMinuteBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

/* 2. Статус HT красного цвета и жирным шрифтом */
.ht-status {
    color: red;
    font-weight: bold;
}

/* 3. Черное тире для неактивных матчей */
.score-inactive {
    color: black;
}

.goal-highlight {
    color: red !important;
    font-weight: bold !important;
    transition: color 0.5s ease, font-weight 0.5s ease;
}

.goal-text {
    color: red !important;
    font-weight: bold !important;
    transition: color 0.5s ease, font-weight 0.5s ease;
}

/* 6. Дополнительные стили для завершенных матчей */
.finished {
    background-color: #d3ffd3;
}

/* 7. Стиль для красного мигающего апострофа внутри статуса */
.red-minute {
    color: red;
    font-weight: bold;
    font-size: 0.9em;
}
.winner {
    font-weight: bold !important;
}
.team-logo {
    width: 20px;
    height: 20px;
    margin-left: 5px; /* Для team1 */
    margin-right: 5px; /* Для team2 */
    vertical-align: middle;
}

/* Если нужно различать отступы для team1 и team2 */
.team1 .team-logo {
    margin-left: 5px;
}

.team2 .team-logo {
    margin-right: 5px;
}
.vertical-block {
    width: flex; /* Занимает всю ширину родительского контейнера */
    background-color: #225475; /* Фон блока, можете изменить по необходимости */
    padding: 10px; /* Внутренние отступы для содержимого блока */
    margin-bottom: 3px; /* Отступ снизу от блока матчей */
    border-radius: 8px 8px 8px 8px;
    /* Дополнительные стили по вашему усмотрению */
}
.logo {
    display: flex;
    justify-content: center; /* Центрируем логотип */
    align-items: center; /* Центрируем логотип по вертикали */
    height: 100%; /* Задаём высоту, чтобы логотип вписывался в полосу */
}

.logo img {
    width: 300px; /* Измените это значение для экспериментов с размером */
    height: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}
.clock-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

/* Стили для SVG-часов */
.clock {
    width: 100px; /* Регулируйте размер по необходимости */
    height: 100px;
    stroke: #FF8000
}

/* Опционально: изменение цвета стрелок и меток */
.clock line {
    stroke: #FF8000;
    stroke-linecap: round;
    transition: transform 0.5s ease-in-out;
    transform-origin: 50 50;
}

.date-time {
    text-align: center;
    margin-bottom: 0px; /* Отступ между датой/временем и часами */
    margin-top: 20px;
    color: #FF8000;
}

.date-time p {
    margin: 2px 0;
    font-size: 14px;
    color: #FF8000;
}
.rss-feed {
    width: 100%;
    margin-top: 20px; /* Отступ сверху для разделения с часами */
}

/* Стили для контейнера новостей */
#news-container {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Расстояние между новостями */
}

/* Стили для отдельных новостей */
.news-item {
    border-bottom: 1px solid #bbb; /* Разделитель между новостями */
    padding-bottom: 10px;
    text-align: left;
}

.news-item:last-child {
    border-bottom: none; /* Убирает разделитель у последней новости */
}

.news-title {
    font-size: 14px; /* Уменьшенный размер шрифта для заголовков */
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #FF8000; /* Цвет заголовков */
    cursor: pointer;
}

.news-description {
    font-size: 12px; /* Уменьшенный размер шрифта для описаний */
    color: #fff;
    margin: 0 0 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ограничение количества строк */
    -webkit-box-orient: vertical;
}

.news-link {
    font-size: 12px;
    color: #FF8000;
    text-decoration: none;
}

.news-link:hover {
    text-decoration: underline;
}

/* Стили для изображений новостей */
.news-item img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 5px;
    object-fit: cover;
}

.status-filter {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Стили для заголовка фильтра */
.filter-heading {
    font-size: 16px;
    margin: 15px 15px;
    color: #b19f3f;
    text-align: center;
}

/* Общие стили для кнопок фильтра */
.status-button {
    width: 100%;
    padding: 12px 16px;
    border: none;
    color: #fff; /* Белый текст для всех кнопок */
    font-size: 14px;
    cursor: pointer;
    text-align: center; /* Центрируем текст в кнопках */
    position: relative;
    transition: background-color 0.3s, color 0.3s;
    font-weight: bold;
}

/* Индивидуальные цвета для каждой кнопки */
.status-button.not-started {
    background-color: #b0b0b0; /* Серый цвет для "Not Started" */
    border-radius: 8px 8px 0 0;
    
}

.status-button.finished {
    background-color: #225475; /* Синий цвет для "Finished" */
}

.status-button.in-play {
    background-color: #FF8000; /* Оранжевый цвет для "In Play" */
}

.status-button.in-play span {
    animation: blink 1s step-start infinite;
}

.status-button.all {
    background-color: #000000; /* Чёрный цвет для "All" */
}

/* Эффекты при наведении на кнопки */
.status-button:hover {
    opacity: 0.85; /* Лёгкое затемнение при наведении */
}

/* Стили для активной кнопки */
.status-button.active {
    box-shadow: 0 0 8px rgba(34, 84, 117, 0.4); /* Тень вокруг активной кнопки для выделения */
}

/* Стили при фокусе на кнопках (для доступности) */
.status-button:focus {
    outline: none; /* Убираем стандартную обводку при фокусе */
    opacity: 0.85; /* Добавляем лёгкий эффект затемнения при фокусе */
}
.search-container {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px; /* Отступ снизу для разделения с фильтрами */
}

.navigation {
    margin-top: 20px;
    color: #b19f3f;;
    font-size: 18px;
}

#match-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px; /* Закругленные углы для эстетичного вида */
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

#match-search:focus {
    border-color: #225475; /* Цвет рамки при фокусе */
}

.date-selection {
    display: flex;
    align-items: center;
    margin-bottom: 3px; /* Регулируйте отступ по необходимости */
}

.date-selection label {
    margin-right: 10px;
    font-weight: bold;
    color: #FF8000; /* Настройте под ваш дизайн */
    font-size: 16px; /* Настройте размер шрифта */
}

.date-selection input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.date-selection input[type="date"]:focus {
    border-color: #225475; /* Настройте под ваш дизайн */
}

/* Адаптивность: уменьшение размера часов на меньших экранах */
@media (max-width: 768px) {
    .clock {
        width: 60px;
        height: 60px;
        color: #FF8000;
    }
    
    .advertisement {
        width: 100%;
        margin: 10px 0;
    }
    
    .rss-feed {
        max-height: none; /* Убираем ограничение высоты */
    }
    
    .news-title {
        font-size: 12px;
    }
    
    .news-description {
        font-size: 10px;
    }
    
    .news-link {
        font-size: 10px;
    }
    .status-filter {
        margin-bottom: 15px;
    }

    .filter-heading {
        font-size: 14px;
        margin: 8px 12px;
    }

    .status-button {
        font-size: 12px;
        padding: 10px 12px;
    }

    .status-button:not(:last-child)::after {
        left: 12px;
        width: calc(100% - 24px);
    }
}
