
/* ✅ Прозрачный навбар на главной */
.site-footer.bg-transparent {
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}


/* Обеспечиваем, что футер не "плавает" по центру */
/* static/style.css */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}
/* ✅ Прозрачный навбар на главной */
.navbar.bg-transparent {
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar.bg-transparent .navbar-brand,
.navbar.bg-transparent .nav-link,
.navbar.bg-transparent .btn-outline-light {
    color: white !important;
}

.navbar.bg-transparent .nav-link:hover,
.navbar.bg-transparent .btn-outline-light:hover {
    color: #e9ecef !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.navbar.bg-transparent .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ✅ Фолбэк для старых браузеров */
.navbar.bg-transparent {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}



/* Уменьшаем padding list-group-item в 2 раза */
.list-group-item {
    padding: 0.25rem 0.75rem !important;
}
/* ✅ Стиль кликабельной категории */
.clickable-category {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: #0d6efd;
    color: #0d6efd;
    font-weight: 600;
}

.clickable-category:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* ✅ Стиль для раскрытой таблицы */
.participant-table {
    background-color: #fafafa;
}

/* ✅ Убираем границу между заголовком и таблицей */
.category-header + .participant-table td {
    border-top: none;
}
/* ✅ ПОЛНОЭКРАННЫЙ ФОН */
.fullscreen-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/static/img/BD22.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

/* ✅ ТЕКСТ НА ФОНЕ — БЕЛЫЙ, ЧИТАЕМЫЙ */
.fullscreen-bg .container {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* ✅ АДАПТИВНОСТЬ НА МОБИЛЬНЫХ */
@media (max-width: 768px) {
    .fullscreen-bg .container {
        padding: 2rem 1rem;
    }
    .fullscreen-bg .display-4 {
        font-size: 2.5rem;
    }
}

./* ✅ ПЛОТНОЕ ОТОБРАЖЕНИЕ ДЛЯ ПАРНЫХ КАТЕГОРИЙ */
.doubles-player {
    line-height: 1.2;
}

.winner-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    border-radius: 50%;
    background-color: #28a745;
    vertical-align: middle;
    margin-right: 0.5rem;
    flex-shrink: 0;
    line-height: 1;
    font-size: 0;
}

/* Для правильного позиционирования кружка */
.position-relative {
    position: relative;
}
/* Псевдоэлемент для кружка победителя */
.winner-indicator-container {
    position: relative; /* КРИТИЧНО: без этого absolute не работает */
}

.winner-indicator-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -10%px; /* ✅ УМЕНЬШЕНО с -15px до -8px */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #28a745;
    transform: translateY(-50%);
}


/* Стили для вертикального отображения пар */

.doubles-player span {
    display: block;
    text-align: center;
}

.doubles-player .text-muted {
    font-size: 0.8rem;
    margin: -2px 0;
}
/* Для колонки времени */
.time-column {
    white-space: nowrap;
    font-weight: 600;
    color: #0d6efd;
}

/* Визуальное разделение этапов */
.group-matches {
    border-top: 2px dashed #e9ecef;
}

.quarterfinal-matches {
    border-top: 2px solid #6c757d;
}

.semifinal-matches {
    border-top: 2px solid #17a2b8;
}

.final-match {
    border-top: 3px solid #0d6efd;
    border-bottom: 3px solid #0d6efd;
    background-color: #e9f7fe;
}

/* Красивый вид для карточек пользователей */
.form-check.card {
    transition: all 0.2s;
}

.form-check.card:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Для адаптивного отображения */
.row-cols-lg-3 > .col {
    min-width: 300px;
}

/* ✅ ВСЕГДА ВИДИМАЯ КНОПКА УДАЛЕНИЯ */
.group-participants .remove-participant {
    opacity: 1 !important;
    transition: opacity 0.2s;
}

.group-participants .remove-participant:hover {
    opacity: 1 !important;
}

/* ✅ ПОРЯДКОВЫЙ НОМЕР УЧАСТНИКА */
.participant-number {
    min-width: 20px;
    text-align: center;
    font-weight: bold;
    color: #0d6efd;
}

/* ✅ УЛУЧШЕНИЕ ВИЗУАЛЬНОГО ВОСПРИЯТИЯ */
.group-participants .d-flex {
    padding: 4px 0;
    transition: background-color 0.2s;
}

.group-participants .d-flex:hover {
    background-color: #f8f9fa;
}
/* ✅ Улучшенное отображение рейтинга */
.rating-badge {
    min-width: 60px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 4px 8px;
}

/* ✅ Выделение лучших игроков */
.card-body {
    position: relative;
    transition: all 0.2s;
}

.card-body::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

/* ✅ ТОП-3 УЧАСТНИКА - ВЫДЕЛЯЕМ ЦВЕТОМ */
.card:nth-child(1) .card-body::before {
    background-color: #ff9800; /* Бронза */
}

.card:nth-child(2) .card-body::before {
    background-color: #9e9e9e; /* Серебро */
}

.card:nth-child(3) .card-body::before {
    background-color: #ffd700; /* Золото */
}

/* ✅ Для остальных игроков */
.card:not(:nth-child(-n+3)) .card-body::before {
    background-color: #0d6efd;
}
/* ✅ Выделение лучших игроков */
.card-body2 {
    position: relative;
    transition: all 0.2s;
}

.card-body2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background-color: #0d6efd;
}





.news-content {
    max-width: 1024px;
    margin: 0 auto;
    text-align: justify;
    line-height: 1.7;
    font-size: 1.1rem;
}

.news-content p {
    text-indent: 2em;
    margin-top: 0.8em;
    margin-bottom: 0.8em;
}
.news-content h1, .news-content h2, .news-content h3, .news-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}
.news-content img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 15px auto;
    display: block;
}

.news-content .ql-video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 8px;
    margin: 15px auto;   /* центрируем */
    padding: 0;          /* обнуляем странные отступы */
    border: none;        /* убираем рамку, если она появилась */
}




/* ✅ СТИЛИ ДЛЯ ИНДИКАТОРА ЗАГРУЗКИ */
.spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.2em;
}

.sponsors-ticker {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  height: 150px;
}

.sponsors-track {
  display: inline-block;
  animation: scrollSponsors 24s linear infinite; /* 3 сек × 8 = 24 сек */
  height: 100%;
}

.sponsor-logo {
  width: 300px;
  height: 150px;
  object-fit: contain;
  display: inline-block;
  margin-right: 40px;
  vertical-align: top;
}

@keyframes scrollSponsors {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Сдвигаемся ровно на 8 логотипов (один полный цикл) */
    transform: translateX(calc(-340px * 8)); /* 340 = 300 + 40 */
  }
}

/* Пауза при наведении */
.sponsors-ticker:hover .sponsors-track {
  animation-play-state: paused;
}

@media (max-width: 576px) {
  .participant-table .d-flex {
    flex-wrap: wrap;
  }
  .participant-table .d-flex > * {
    margin-bottom: 0.2rem;
  }
  .participant-table img {
    width: 24px !important;
    height: 24px !important;
  }
}
.set-score {
  font-family: monospace;
  display: inline-block;
  min-width: 2ch;
  text-align: right;
}

.leading-zero {
  opacity: 0; /* или color: transparent; или opacity: 0; */
}

.winner-indicator-mob {
    display: inline-block;
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    border-radius: 50%;
    background-color: #28a745;
    vertical-align: middle;
    flex-shrink: 0;
    line-height: 1;
    font-size: 0;
}


.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
}


/* === Исправление выравнивания Quill === */
.ql-align-center { text-align: center !important; }
.ql-align-right { text-align: right !important; }
.ql-align-justify { text-align: justify !important; }
.ql-align-left { text-align: left !important; }



/* ✅ Стили только для мобильных (до 768px) */
@media (max-width: 767px) {
    .news-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .news-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .news-content p {
        margin-bottom: 1rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }
}

/* ✅ Десктоп: оставляем как было (без изменений) */
@media (min-width: 768px) {
    .news-detail h1 {
        /* Ваш оригинальный стиль */
    }

    .news-content {
        /* Ваш оригинальный стиль */
    }
}





