/* Основные стили для страницы турнира */
.tournament-detail-page {
    padding: 80px 0 50px;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tournament-header {
    margin-bottom: 3rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Не используется (закомментировано в HTML) */
/*
.tournament-cover {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.tournament-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 15, 26, 0.9), transparent);
}
*/

.tournament-title {
    position: relative;
    text-align: left;
    max-width: 800px;
    padding: 2rem;
    margin-right: 1rem; /* Создает отступ между заголовком и статусом */
    flex-grow: 1; /* Разрешает заголовку занимать оставшееся пространство */
}

/*.tournament-title::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    bottom: 0;*/
/*    left: 50%;*/
/*    transform: translateX(-50%);*/
/*    width: 100px;*/
/*    height: 3px;*/
/*    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));*/
/*    border-radius: 3px;*/
/*}*/

.tournament-title h1 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.tournament-heading {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--light-text);
    opacity: 0.9;
    margin-top: 0.5rem;
}

.tournament-status {
    /*padding: 6px 15px;*/
    /*border-radius: 20px;*/
    /*font-weight: 600;*/
    /*font-size: 0.9rem;*/
    /*display: inline-flex; !* Или display: inline-block; *!*/
    /*align-items: center; !* Центрирование по вертикали *!*/
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tournament-status i {
    margin-right: 8px;
}

.tournament-status span { /* Стили для внутренних span */
    display: inline-flex; /* Или display: inline-block; */
    align-items: center;
}

/* Не используется (вместо него используются status-* классы) */
/*
.status-live {
    background: #ff0000;
    color: white;
    animation: pulse 1.5s infinite;
}
*/

/* Баннер статуса турнира */
.tournament-status-banner {
    position: sticky;
    top: 70px; /* Под шапкой */
    z-index: 90;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.tournament-status-banner i {
    margin-right: 8px;
}

.status-ongoing {
    background: #ff0000;
    color: white;
    animation: pulse 2s infinite;
}

.status-upcoming {
    /*background-color: #2ed573;*/
    background: var(--accent-color);
    color: var(--dark-bg);
}

.status-registration {
    background: var(--primary-color);
    color: white;
}

.status-completed {
    background: #6c757d;
    color: white;
}

.tournament-status i {
    margin-right: 6px;
}


.tournament-meta {
    display: flex;
    justify-content: left;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(110, 0, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    border: 1px solid rgba(110, 0, 255, 0.2);
}

.meta-icon {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Секция участия */
.participation-section {
    text-align: center;
    margin: 2.5rem 0;
    position: relative;
}

/* Общие стили кнопок */
.btn-join-tournament,
.btn-leave-tournament {
    position: relative;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 1;
    min-width: 250px;
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* Кнопка присоединения */
.btn-join-tournament {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 5px 25px rgba(110, 0, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-join-tournament:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(110, 0, 255, 0.6);
}

.btn-join-tournament:hover .btn-icon {
    transform: rotate(15deg);
}

/* Эффекты для кнопки присоединения */
.btn-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
    top: 0;
    left: 0;
    opacity: 0;
    animation: pulse 2s infinite;
    border-radius: 50px;
    z-index: 0;
}

.btn-shine {
    position: absolute;
    width: 50%;
    height: 200%;
    background: linear-gradient(
            to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0) 100%
    );
    top: -50%;
    left: -100%;
    transform: rotate(30deg);
    transition: all 0.8s ease;
    z-index: 1;
}

.btn-join-tournament:hover .btn-shine {
    left: 150%;
}

/* Кнопка выхода */
.btn-leave-tournament {
    background: rgba(30, 20, 50, 0.7);
    color: #ff3860;
    border: 1px solid rgba(255, 56, 96, 0.5);
    box-shadow: 0 5px 25px rgba(255, 56, 96, 0.2);
}

.btn-leave-tournament:hover {
    background: rgba(255, 56, 96, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 56, 96, 0.3);
}

.btn-leave-tournament:hover .btn-icon {
    transform: rotate(-15deg);
}

.btn-warning {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ff3860;
    border-radius: 50%;
    top: 12px;
    right: 12px;
    animation: blink 1.5s infinite;
}

/* Подсказка с датой закрытия */
.participation-hint {
    margin-top: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.participation-hint i {
    color: var(--primary-light);
}

/* Анимации */
@keyframes pulse {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .btn-join-tournament,
    .btn-leave-tournament {
        padding: 14px 30px;
        font-size: 1rem;
        min-width: 220px;
    }
}

/* Основной контент */
.tournament-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

@media (max-width: 992px) {
    .tournament-content {
        grid-template-columns: 1fr;
    }
}

/* Карточка описания турнира */
.tournament-description-card {
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.95), rgba(50, 30, 70, 0.95));
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--primary-light);
    box-shadow: 0 10px 30px rgba(110, 0, 255, 0.2);
}

/* Заголовок */
.description-header {
    margin-bottom: 25px;
    position: relative;
}

.description-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    margin: 0;
    color: white;
    position: relative;
}

.description-icon {
    color: var(--primary-light);
    font-size: 1.8rem;
}

.title-text {
    background: linear-gradient(to right, #fff 20%, var(--primary-light) 40%, var(--secondary-color) 60%, #fff 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

.title-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin-left: 15px;
}

/* Контент описания */
.description-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1rem;
}

.description-content p {
    margin-bottom: 15px;
}

/* Секция правил */
.rules-section {
    background: rgba(110, 0, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    border-left: 3px solid var(--primary-color);
}

.rules-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.rules-icon {
    color: var(--accent-color);
    font-size: 1.3rem;
}

.rules-title {
    margin: 0;
    font-size: 1.2rem;
    color: white;
}

.rules-content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.rules-content ul {
    padding-left: 20px;
}

.rules-content li {
    margin-bottom: 8px;
    position: relative;
}

.rules-content li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    top: -2px;
}

/* Футер */
.description-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed rgba(110, 0, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.description-footer i {
    color: var(--primary-light);
}

/* Эффекты */
.tournament-description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Анимации */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .tournament-description-card {
        padding: 20px;
    }

    .description-title {
        font-size: 1.3rem;
    }

    .rules-section {
        padding: 15px;
    }
}

/* Карточка формата турнира */
.tournament-format-card {
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.95), rgba(50, 30, 70, 0.95));
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--primary-light);
    box-shadow: 0 10px 30px rgba(110, 0, 255, 0.2);
}

/* Заголовок */
.format-header {
    margin-bottom: 25px;
    position: relative;
}

.format-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    margin: 0;
    color: white;
    position: relative;
}

.format-icon {
    color: var(--primary-light);
    font-size: 1.8rem;
}

/* Бейдж формата */
.format-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.single-elimination-badge {
    background: rgba(160, 0, 255, 0.2);
    border: 1px solid var(--primary-light);
    color: #fff;
    text-shadow: 0 0 10px rgba(200, 0, 255, 0.7);
}

/* Описание формата */
.format-description p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Особенности формата */
.format-features {
    margin: 25px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.feature-icon {
    color: var(--accent-color);
    min-width: 20px;
}

/* Визуализация структуры */
.format-structure {
    margin-top: 30px;
    padding: 20px;
    background: rgba(110, 0, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.structure-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.round {
    text-align: center;
    padding: 15px;
    background: rgba(70, 0, 120, 0.3);
    border-radius: 8px;
    flex-grow: 1;
    min-width: 100px;
    transition: all 0.3s ease;
}

.round.highlight {
    background: rgba(160, 0, 255, 0.3);
    box-shadow: 0 0 15px rgba(200, 0, 255, 0.4);
    transform: scale(1.05);
}

.round-title {
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.matches {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.arrow {
    color: var(--primary-light);
    font-size: 1.2rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .structure-visual {
        flex-direction: column;
    }

    .arrow {
        transform: rotate(90deg);
    }

    .round {
        width: 100%;
    }
}

/* Секция формата */
.format-section {
    background: rgba(110, 0, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 30px;
}

.format-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.format-icon {
    color: var(--accent-color);
    font-size: 1.3rem;
}

.format-title {
    margin: 0;
    font-size: 1.2rem;
    color: white;
}

.format-content {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.format-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.single-elimination-badge {
    background: rgba(160, 0, 255, 0.2);
    border: 1px solid var(--primary-light);
    color: #fff;
    text-shadow: 0 0 10px rgba(200, 0, 255, 0.7);
}

.format-features {
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.feature-icon {
    color: var(--primary-light);
    min-width: 20px;
    font-size: 0.9rem;
}

.format-structure {
    margin-top: 25px;
    padding: 15px;
    background: rgba(70, 0, 120, 0.2);
    border-radius: 8px;
}

.structure-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.round {
    text-align: center;
    padding: 12px 10px;
    background: rgba(70, 0, 120, 0.3);
    border-radius: 8px;
    flex-grow: 1;
    min-width: 80px;
    transition: all 0.3s ease;
}

.round.highlight {
    background: rgba(160, 0, 255, 0.3);
    box-shadow: 0 0 15px rgba(200, 0, 255, 0.4);
    transform: scale(1.05);
}

.round-title {
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.matches {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.arrow {
    color: var(--primary-light);
    font-size: 1rem;
    opacity: 0.7;
}

/* Адаптивность */
@media (max-width: 768px) {
    .structure-visual {
        flex-direction: column;
    }

    .arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }

    .round {
        width: 100%;
    }

    .format-section {
        padding: 15px;
    }
}

/*!* Стили для турнирной сетки *!*/
/* Основной контейнер */
.bracket-container {
    max-width: 100%;
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.95), rgba(50, 30, 70, 0.95));
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--primary-light);
    box-shadow: 0 10px 30px rgba(110, 0, 255, 0.2);
}

/* Вертикальная сетка */
.vertical-bracket {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Раунд (стадия) турнира */
.bracket-stage {
    background: rgba(30, 20, 50, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(110, 0, 255, 0.3);
    overflow: hidden;
}

.stage-header {
    padding: 12px 15px;
    background: rgba(110, 0, 255, 0.2);
    border-bottom: 1px solid rgba(110, 0, 255, 0.3);
}

.stage-title {
    margin: 0;
    font-size: 1.1rem;
    color: white;
    font-weight: 500;
}

.stage-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Матчи в раунде */
.stage-matches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    padding: 15px;
}

/* Компактная карточка матча */
.compact-match {
    background: rgba(40, 30, 60, 0.7);
    border-radius: 6px;
    padding: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.match-completed {
    border-left: 3px solid var(--success-color);
}

.match-upcoming {
    border-left: 3px solid var(--primary-light);
}

.compact-match:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 0, 255, 0.3);
}

/* Время матча */
.match-time {
    position: absolute;
    top: -8px;
    left: 10px;
    background: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
}

.match-time i {
    color: var(--primary-light);
    font-size: 0.7rem;
}

/* Команды */
.match-teams {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 4px;
    background: rgba(30, 20, 50, 0.5);
}

.team-winner {
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.team-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--primary-light);
}

.team-name {
    flex-grow: 1;
    font-size: 0.85rem;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-score {
    background: rgba(0, 0, 0, 0.3);
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.8rem;
    color: white;
}

.team-winner .team-score {
    background: var(--success-color);
}

/* Разделитель VS */
.vs-separator {
    text-align: center;
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 600;
    margin: 2px 0;
}

/* Футер матча */
.match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(110, 0, 255, 0.2);
}

.match-status {
    font-size: 0.75rem;
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.match-status i {
    font-size: 0.9rem;
}

/* Кнопка редактирования */
.btn-edit-match {
    background: rgba(110, 0, 255, 0.2);
    color: var(--primary-light);
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit-match:hover {
    background: rgba(110, 0, 255, 0.3);
    transform: translateY(-2px);
}

/* Адаптация под количество раундов */
@media (max-width: 768px) {
    .stage-matches {
        grid-template-columns: 1fr;
    }

    .team-name {
        font-size: 0.8rem;
    }

    .team-avatar {
        width: 22px;
        height: 22px;
    }
}

/* Для очень больших турниров (8+ раундов) */
.bracket-container.large-bracket .compact-match {
    padding: 8px;
}

.bracket-container.large-bracket .team-avatar {
    width: 20px;
    height: 20px;
}

.bracket-container.large-bracket .team-name {
    font-size: 0.75rem;
}

.bracket-container.large-bracket .team-score {
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
}

/* Состояние "нет матчей" */
.no-matches {
    padding: 40px 20px;
    text-align: center;
}

.empty-bracket {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.empty-bracket i {
    font-size: 2.5rem;
    color: rgba(110, 0, 255, 0.3);
}

.empty-bracket p {
    margin: 0;
    color: white;
    font-size: 1.1rem;
}

.empty-bracket small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Боковая панель */
.tournament-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
}

/* Контейнер призового фонда */
.prize-container {
    perspective: 1000px;
    margin-bottom: 2rem;
}

.prize-card {
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.95), rgba(50, 30, 70, 0.95));
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--primary-light);
    box-shadow: 0 10px 30px rgba(110, 0, 255, 0.2);
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

.prize-card:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 15px 40px rgba(110, 0, 255, 0.4);
}

/* Шапка с короной и алмазами */
.prize-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.prize-crown {
    color: gold;
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.prize-gems {
    display: flex;
    gap: 8px;
}

.prize-gems i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.gem-1 { color: var(--primary-color); animation: float 3s infinite ease-in-out; }
.gem-2 { color: var(--secondary-color); animation: float 3s infinite 0.5s ease-in-out; }
.gem-3 { color: var(--accent-color); animation: float 3s infinite 1s ease-in-out; }

/* Сумма приза */
.prize-amount {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(110, 0, 255, 0.3);
}

/* Подпись */
.prize-label {
    font-size: 1.1rem;
    color: var(--light-text);
    opacity: 0.8;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Детали распределения */
.prize-details {
    background: rgba(0, 255, 204, 0.1);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.prize-details i {
    color: var(--accent-color);
}

/* Эффекты свечения */
.prize-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at center, rgba(110, 0, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.prize-card:hover .prize-glow {
    opacity: 1;
}

/* Анимации */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .prize-amount {
        font-size: 2rem;
    }

    .prize-label {
        font-size: 1rem;
    }
}

/* Участники */
.participants-list {
    display: grid;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

/* Блок участников */
.participants-card {
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.95) 0%, rgba(50, 30, 70, 0.95) 100%);
    border: 1px solid var(--primary-light);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(110, 0, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.participants-header {
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.participants-icon {
    color: var(--primary-light);
    font-size: 1.4rem;
}

.participants-title {
    margin: 0;
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff 20%, var(--primary-light) 40%, var(--secondary-color) 60%, #fff 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

.participants-count {
    margin-left: auto;
    background: rgba(110, 0, 255, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.participants-list {
    padding: 15px;
    display: grid;
    gap: 8px;
    max-height: 350px;
    overflow-y: auto;
}

/* Стилизация скроллбара */
.participants-list::-webkit-scrollbar {
    width: 6px;
}

.participants-list::-webkit-scrollbar-track {
    background: rgba(110, 0, 255, 0.1);
}

.participants-list::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.participant {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 8px;
    background: rgba(30, 20, 50, 0.5);
    border: 1px solid rgba(110, 0, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.participant:hover {
    background: rgba(110, 0, 255, 0.2);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(110, 0, 255, 0.2);
}

.participant-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    position: relative;
}

.participant-rank i {
    position: absolute;
    top: -8px;
    color: gold;
    font-size: 0.7rem;
}

.participant-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
    box-shadow: 0 0 10px rgba(110, 0, 255, 0.5);
}

.participant-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.participant-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.participant-level {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.participant-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: auto;
}

.online {
    background: var(--success-color);
    box-shadow: 0 0 10px var(--success-color);
}

.offline {
    background: var(--error-color);
    box-shadow: 0 0 10px var(--error-color);
}

/* Состояние "нет участников" */
.empty-state {
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.empty-icon {
    font-size: 2.5rem;
    color: rgba(110, 0, 255, 0.3);
    margin-bottom: 10px;
}

.empty-text {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.empty-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* Прогресс-бар в футере */
.participants-footer {
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
}

.progress-bar {
    height: 6px;
    background: rgba(110, 0, 255, 0.2);
    border-radius: 3px;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* Анимации */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    gap: 15px;
}
/*.action-buttons {*/
/*    display: grid;*/
/*    gap: 10px;*/

/*    background: none;*/
/*    border: none;*/
/*    padding: 0;*/
/*}*/

/*.btn {*/
/*    padding: 12px;*/
/*    border-radius: 5px;*/
/*    font-weight: 600;*/
/*    cursor: pointer;*/
/*    transition: all 0.3s ease;*/
/*    text-align: center;*/
/*    text-decoration: none;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    gap: 8px;*/
/*    border: none;*/
/*}*/

.btn {
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    box-shadow: 0 0 15px var(--primary-light);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Кнопка поделиться */
.btn-share {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-share:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-share i {
    font-size: 1.1rem;
}

/* Кнопка трансляции */
.btn-stream {
    background: rgba(145, 70, 255, 0.1);
    color: #9146FF; /* Twitch purple */

    font-weight: 500;
    border: 1px solid rgba(145, 70, 255, 0.2);
    transition: all 0.3s ease;


    text-decoration: none;
}

.btn-stream:hover {
    background: rgba(145, 70, 255, 0.2);
}

/* Стили для пустого списка участников */
.no-participants {
    padding: 30px;
    text-align: center;
    color: var(--dark-text);
    background: rgba(58, 12, 163, 0.1);
    border-radius: 8px;
}

.no-participants i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.no-participants p {
    margin: 0;
    font-size: 1rem;
}

/* Админ-панель */
.admin-panel {
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.95) 0%, rgba(50, 30, 70, 0.95) 100%);
    border: 1px solid var(--primary-light);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(110, 0, 255, 0.2);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.admin-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.admin-header {
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.admin-icon {
    color: var(--primary-light);
    font-size: 1.4rem;
}

.admin-title {
    margin: 0;
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff 20%, var(--primary-light) 40%, var(--secondary-color) 60%, #fff 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

.admin-pulse {
    width: 10px;
    height: 10px;
    background: var(--success-color);
    border-radius: 50%;
    margin-left: auto;
    box-shadow: 0 0 0 0 rgba(0, 255, 100, 0.7);
    animation: pulse 1.5s infinite;
}

.admin-actions {
    padding: 15px;
    display: grid;
    gap: 10px;
}

.admin-btn {
    background: rgba(30, 20, 50, 0.7);
    border: 1px solid rgba(110, 0, 255, 0.3);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.admin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(110, 0, 255, 0.3);
    border-color: var(--primary-color);
}

.admin-btn-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.admin-btn-text {
    flex-grow: 1;
    font-size: 0.9rem;
}

.admin-btn-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Конкретные кнопки */
.btn-edit {
    border-left: 3px solid var(--primary-light);
}

.btn-edit:hover {
    background: rgba(110, 0, 255, 0.2);
}

.btn-add-users {
    border-left: 3px solid #00e5ff;
}

.btn-add-users:hover {
    background: rgba(0, 229, 255, 0.1);
}

.btn-draw {
    border-left: 3px solid #ff00ff;
}

.btn-draw:hover {
    background: rgba(255, 0, 255, 0.1);
}

.btn-start {
    border-left: 3px solid var(--success-color);
    background: rgba(0, 200, 83, 0.1);
}

.btn-start:hover {
    background: rgba(0, 200, 83, 0.2);
}

.btn-danger {
    border-left: 3px solid var(--error-color);
    background: rgba(255, 56, 96, 0.1);
}

.btn-danger:hover {
    background: rgba(255, 56, 96, 0.2);
}

.admin-footer {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Анимации */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 100, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 100, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 100, 0);
    }
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.pulse {
    animation: pulse 1.5s infinite;
}


/* ============================================= */
/* МОДАЛЬНЫЕ ОКНА (ГЕЙМЕРСКИЙ СТИЛЬ) */
/* ============================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 5, 20, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.95) 0%, rgba(50, 30, 70, 0.95) 100%);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(110, 0, 255, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    overflow: hidden;
    border: 1px solid #6e00ff;
    position: relative;
}

.modal-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8a2be2, #6e00ff, #ba55d3);
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.modal-header {
    padding: 18px 25px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(110, 0, 255, 0.3);
    position: relative;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff 20%, #ba55d3 40%, #8a2be2 60%, #fff 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

.modal-body {
    padding: 25px;
    color: #e2d9ff;
    line-height: 1.6;
    font-size: 1rem;
    background: rgba(20, 10, 40, 0.5);
}

.modal-footer {
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid rgba(110, 0, 255, 0.2);
}

.modal-btn {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    border: none;
}

.modal-btn-cancel {
    background: rgba(60, 30, 90, 0.7);
    color: #d0b3ff;
    border: 1px solid #4b0082;
}

.modal-btn-cancel:hover {
    background: rgba(90, 50, 120, 0.7);
    color: white;
    box-shadow: 0 0 15px rgba(75, 0, 130, 0.5);
    transform: translateY(-2px);
}

.modal-btn-confirm {
    background: linear-gradient(135deg, #8a2be2 0%, #6e00ff 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.modal-btn-confirm:hover {
    background: linear-gradient(135deg, #9b42f0 0%, #7e1aff 100%);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
    transform: translateY(-2px);
}

/* Эффект свечения при наведении */
.modal-btn-confirm::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    pointer-events: none;
    transition: all 0.5s ease;
}

.modal-btn-confirm:hover::after {
    left: 100%;
}

/* Блокировка прокрутки тела */
body.modal-open {
    overflow: hidden;
}

/* ============================================= */
/* TOAST УВЕДОМЛЕНИЯ (ГЕЙМЕРСКИЙ СТИЛЬ) */
/* ============================================= */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    position: relative;
    padding: 15px 20px;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    max-width: 350px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid transparent;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast-icon {
    margin-right: 15px;
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast-close {
    margin-left: 15px;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0 0 0 10px;
}

.toast-close:hover {
    opacity: 1;
}

/* Типы toast */
.toast-success {
    background: linear-gradient(135deg, rgba(30, 70, 50, 0.9) 0%, rgba(50, 100, 70, 0.9) 100%);
    border-color: #00e676;
}

.toast-success::before {
    background: linear-gradient(to bottom, #00e676, #00c853);
}

.toast-success .toast-icon {
    color: #00e676;
}

.toast-error {
    background: linear-gradient(135deg, rgba(70, 30, 50, 0.9) 0%, rgba(100, 40, 60, 0.9) 100%);
    border-color: #ff5252;
}

.toast-error::before {
    background: linear-gradient(to bottom, #ff5252, #d32f2f);
}

.toast-error .toast-icon {
    color: #ff5252;
}

.toast-warning {
    background: linear-gradient(135deg, rgba(70, 60, 30, 0.9) 0%, rgba(100, 80, 40, 0.9) 100%);
    border-color: #ffab00;
}

.toast-warning::before {
    background: linear-gradient(to bottom, #ffab00, #ff8f00);
}

.toast-warning .toast-icon {
    color: #ffab00;
}

.toast-info {
    background: linear-gradient(135deg, rgba(30, 50, 70, 0.9) 0%, rgba(50, 70, 100, 0.9) 100%);
    border-color: #6e00ff;
}

.toast-info::before {
    background: linear-gradient(to bottom, #6e00ff, #8a2be2);
}

.toast-info .toast-icon {
    color: #6e00ff;
}

/* Анимация свечения */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(110, 0, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(110, 0, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(110, 0, 255, 0.5);
    }
}

/* Анимация градиента */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Эффект неонового свечения */
.modal-dialog {
    animation: pulse-glow 3s infinite;
}

/* Анимация пульсации */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 56, 96, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 56, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 56, 96, 0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .tournament-status-banner {
        top: 60px;
        font-size: 0.8rem;
        padding: 10px 0;
    }

    .tournament-title h1 {
        font-size: 2rem;
    }

    .tournament-meta {
        gap: 1rem;
    }

    .meta-item {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .btn-participate,
    .btn-leave {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .round {
        min-width: 180px;
    }

    .match-card {
        padding: 8px;
    }
}