/* Дерзкий дизайн для страницы турнира */
body {
    background: linear-gradient(135deg, #000000, #111111, #b8860b, #000000);
    margin: 0;
    padding: 0;
    color: white;
    font-family: 'Open Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 237, 78, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 193, 7, 0.12) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Hero секция — отступ сверху, чтобы бейдж (Вольная борьба) не заходил за фиксированную шапку */
.tournament-hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
    padding-top: 300px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.hero-placeholder {
    width: 100%;
    height: 100%;
}

/* Стили для шапки на странице турнира */
.tournament-detail-page .header {
    background: transparent !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tournament-detail-page .header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(26,26,26,0.5), rgba(255,215,0,0.2));
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    z-index: 3;
}

.tournament-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 24px;
    margin-top: 0;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

/* На десктопе: фиксированная шапка 70px — иначе название/бейдж уезжают под header */
@media (min-width: 769px) {
    .tournament-hero {
        padding-top: 70px;
        box-sizing: border-box;
    }
    .hero-content {
        padding-top: 8px;
    }
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.hero-title {
    font-family: 'Teko', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin: 0 0 40px 0;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 30px rgba(255, 215, 0, 0.6); }
    to { text-shadow: 0 0 40px rgba(255, 215, 0, 0.9), 0 0 60px rgba(255, 215, 0, 0.4); }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    min-width: 220px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.stat-label-inline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
}

.stat-value-inline {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffd700;
    text-align: right;
}

.hero-action {
    margin-top: 30px;
}

.action-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-btn.register {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.action-btn.register:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
}

.action-btn.registered {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    cursor: not-allowed;
}

.action-btn.unregister {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.action-btn.unregister:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.action-btn.closed {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    cursor: not-allowed;
}

.action-btn.login {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

.action-btn.login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.4);
}

/* Основной контент */
.tournament-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    z-index: 2;
    position: relative;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 0; /* Позволяет flex-элементам сжиматься */
}

/* Страница отмены регистрации: блок по центру на всю ширину сетки */
.main-content:has(.unregister-confirm-section) {
    align-items: center;
    width: 100%;
    grid-column: 1 / -1; /* растянуть на обе колонки, чтобы блок был по центру страницы */
}

/* Когда активна секция участников, main-content занимает всю ширину */
.main-content:has(.participants-section.tab-content.active) {
    grid-column: 1 / -1;
}

/* Секции */
.info-section, .description-section, .participants-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 30px;
    /* Убираем ограничения ширины для секции участников */
    width: 100%;
    max-width: 100%;
}

.info-section:hover, .description-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Секция участников не должна иметь hover эффект, так как она на всю ширину */
.participants-section:hover {
    transform: none;
    box-shadow: none;
}

.section-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 237, 78, 0.1));
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-header h2 i {
    color: #ffd700;
}

/* Информационные карточки */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 107, 0.3);
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.info-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: #ff6b6b;
}

.info-content p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Описание */
.description-content {
    padding: 30px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Участники - старые стили удалены, используются новые стили ниже */

.no-participants {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.no-participants i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.3);
}

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

.sidebar-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: #ff6b6b;
}

.card-content {
    padding: 25px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.sidebar-btn.primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.sidebar-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.sidebar-btn.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.sidebar-btn.warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.3);
}

.sidebar-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.no-bracket {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin: 20px 0;
}

.warning-text {
    color: #f39c12;
    font-size: 0.9rem;
    text-align: center;
    margin: 10px 0;
}

.organizer-actions {
    margin-top: 20px;
}

.organizer-info h4 {
    margin: 0 0 15px 0;
    color: #ff6b6b;
    font-size: 1.2rem;
}

.organizer-info p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
}

.organizer-info p i {
    color: #4ecdc4;
    width: 20px;
}

/* Стили для страницы подтверждения отмены регистрации */
.unregister-confirm-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    text-align: center;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
    align-self: center;
    min-width: 0; /* чтобы внутренний flex не выталкивал блок */
}

.confirm-card {
    max-width: 600px;
    margin: 0 auto;
    min-width: 0;
}

.confirm-content {
    min-width: 0;
}

.confirm-icon {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 30px;
}

.confirm-content h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: white;
}

.tournament-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.tournament-info h4 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.tournament-info p {
    margin: 10px 0;
    color: #e0e0e0;
}

.warning-message {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.warning-message i {
    color: #ffd700;
    font-size: 1.5rem;
}

.warning-message p {
    margin: 0;
    color: #ffd700;
    font-weight: 500;
}

.confirm-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    flex-direction: row;
    max-width: 100%;
    min-width: 0;
}

.confirm-actions form {
    flex: 0 1 auto;
    min-width: 0;
}

.confirm-actions .btn {
    padding: 15px 28px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 1 auto;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
}

.confirm-actions .btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.confirm-actions .btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.confirm-actions .btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    box-shadow: 0 10px 30px rgba(149, 165, 166, 0.3);
}

.confirm-actions .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(149, 165, 166, 0.4);
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
}

/* Кнопки отмены регистрации: в столбик при нехватке ширины, чтобы не вылезали за контейнер */
@media (max-width: 800px) {
    .unregister-confirm-section .confirm-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .unregister-confirm-section .confirm-actions .btn,
    .unregister-confirm-section .confirm-actions form {
        max-width: 100%;
        width: 100%;
    }
}

/* Адаптивность */
@media (max-width: 1024px) {
    .tournament-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-item {
        min-width: 180px;
        padding: 15px;
    }

    .stat-value-inline {
        font-size: 1.15rem;
    }
}

/* ==================== ТАБЫ ДЛЯ НАВИГАЦИИ ==================== */
/* Sticky обертка для табов */
.tournament-tabs-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    margin: 0;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.tournament-tabs {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.03);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.tournament-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 18px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    white-space: nowrap;
    min-width: fit-content;
    flex-shrink: 0;
    flex: 1;
    justify-content: center;
}

.tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.08);
}

.tab-btn:hover::before {
    transform: scaleX(0.5);
}

.tab-btn.active {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
    border-bottom-color: #ffd700;
}

.tab-btn.active::before {
    transform: scaleX(1);
}

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

.tab-btn:hover i,
.tab-btn.active i {
    transform: scale(1.1);
}

.tab-btn span {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tab-content {
    display: none;
    animation: fadeInTab 0.4s ease-in;
    padding: 0 20px;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== ТАЙМЛАЙН РЕГИСТРАЦИИ ==================== */
.registration-timeline {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 20px;
    backdrop-filter: blur(10px);
}

.timeline-header {
    margin-bottom: 25px;
}

.timeline-header h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.timeline-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

.timeline-card.early-bird {
    border-left: 4px solid #4caf50;
}

.timeline-card.normal {
    border-left: 4px solid #ffc107;
}

.timeline-card.late {
    border-left: 4px solid #f44336;
}

.timeline-status {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.timeline-content h4 {
    color: #ffd700;
    font-size: 1.2rem;
    margin: 0 0 10px 0;
}

.timeline-dates {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
    margin: 5px 0;
}

.timeline-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 5px 0;
}

/* ==================== CTA КНОПКА РЕГИСТРАЦИИ ==================== */
.cta-registration {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 20px;
    gap: 15px;
}

.hero-registration-cta {
    display: none; /* показываем только на мобилке */
}

/* На мобильных показываем кнопку регистрации сразу вверху (в hero),
   а карточку регистрации справа скрываем, чтобы не было дублей. */
@media (max-width: 992px) {
    .hero-registration-cta {
        display: block;
        width: 100%;
        margin-top: 18px;
    }

    .hero-registration-cta .cta-registration {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        margin: 16px 0 0;
        gap: 12px;
        padding: 0 16px; /* внутренние поля, чтобы кнопки не упирались в край */
        box-sizing: border-box;
    }

    .hero-registration-cta .cta-btn {
        min-width: 0;
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .registration-right-cta {
        display: none;
    }
}

.cta-btn {
    padding: 20px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 300px;
    justify-content: center;
}

/* Кнопка «Зарегистрироваться» — явно активная, контрастная (не путать с disabled) */
.cta-btn.primary {
    background: linear-gradient(135deg, #ffd700 0%, #ff9800 100%) !important;
    color: #000 !important;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    cursor: pointer !important;
    opacity: 1 !important;
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

.cta-btn.primary.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(255, 215, 0, 0.8);
    }
}

.cta-btn.registered {
    background: rgba(76, 175, 80, 0.3);
    color: #4caf50;
    border: 2px solid #4caf50;
    cursor: not-allowed;
}

.cta-btn.closed {
    background: rgba(128, 128, 128, 0.3);
    color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(128, 128, 128, 0.5);
    cursor: not-allowed;
}

.cta-btn.secondary {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 2px solid #ffd700;
}

.cta-btn.secondary:hover {
    background: rgba(255, 215, 0, 0.3);
}

/* ==================== СЕКЦИИ РАСПИСАНИЯ И РЕЗУЛЬТАТОВ ==================== */
.schedule-section,
.results-section {
    margin: 40px 0;
    padding: 0;
}

/* Сетка категорий в управлении расписанием */
.schedule-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Карточка матча в расписании — без жёлтой полосы слева */
.schedule-match-item {
    border-left: none !important;
}

/* Новое расписание - заголовок и фильтры */
.schedule-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 25px 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-header h2 {
    margin: 0 0 25px 0;
    font-size: 1.8rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.schedule-header h2 i {
    color: #ffd700;
}

/* Навигация по дням */
.schedule-days-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.day-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: rgba(255, 255, 255, 0.7);
    min-width: 150px;
}

.day-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
    color: white;
}

.day-btn.active {
    background: rgba(255, 215, 0, 0.15);
    border-color: #ffd700;
    color: #ffd700;
}

.day-number {
    font-weight: 600;
    font-size: 1rem;
}

.day-date {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Фильтры расписания */
.schedule-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-input-group {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.filter-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

/* Иконка справа — в поиске расписания, чтобы placeholder «Поиск...» не заходил под лупу */
.filter-input-group--icon-right i {
    left: auto;
    right: 14px;
}

.schedule-filter-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 40px 12px 15px; /* справа место под иконку, слева обычный отступ */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.schedule-filter-input:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
}

.schedule-filter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.schedule-filter-select {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.schedule-filter-select:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
}

.schedule-filter-select option {
    background: #1a1a1a;
    color: white;
}

.schedule-reset-btn {
    padding: 12px 20px;
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 8px;
    color: #ff6b6b;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule-reset-btn:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
}

/* Контейнер матов */
.schedule-mats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Карточка мата */
.schedule-mat {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.schedule-mat:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mat-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 237, 78, 0.1));
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mat-title {
    margin: 0;
    font-size: 1.2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.mat-title i {
    color: #ffd700;
}

.mat-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.mat-matches-count {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.mat-estimated-time {
    font-size: 0.85rem;
    color: #ffd700;
}

/* Категории в мате */
.mat-categories {
    padding: 15px 20px;
}

.mat-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mat-category-item:last-child {
    border-bottom: none;
}

.category-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.category-name {
    font-size: 0.95rem;
    color: white;
    font-weight: 500;
}

.category-matches {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.category-time {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-eta {
    font-size: 0.85rem;
    color: #ffd700;
    font-weight: 600;
}

.category-status {
    font-size: 1.2rem;
}

.status-active {
    color: #4ecdc4;
}

.status-completed {
    color: #4ecdc4;
}

.status-pending {
    color: rgba(255, 255, 255, 0.4);
}

/* Итоги мата */
.mat-summary {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.summary-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.summary-value {
    font-size: 1rem;
    color: #ffd700;
    font-weight: 600;
}

/* Пустое расписание */
.schedule-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.schedule-empty i {
    font-size: 4rem;
    color: rgba(255, 215, 0, 0.3);
    margin-bottom: 20px;
}

.schedule-empty p {
    font-size: 1.1rem;
    margin: 0;
}

.schedule-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.schedule-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    gap: 25px;
    align-items: center;
    transition: all 0.3s ease;
}

.schedule-card:hover {
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateX(5px);
}

.schedule-date {
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #ffd700;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-width: 100px;
}

.date-day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
}

.date-month {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

.schedule-info h3 {
    color: #ffd700;
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.schedule-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-content {
    text-align: center;
    padding: 40px 20px;
}

.results-btn {
    display: inline-block;
    padding: 20px 40px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.results-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
}

.no-results {
    color: rgba(255, 255, 255, 0.7);
    padding: 40px;
}

.no-results i {
    font-size: 3rem;
    color: rgba(255, 215, 0, 0.5);
    margin-bottom: 20px;
}

.no-results p {
    font-size: 1.1rem;
}

/* ==================== АДАПТИВНОСТЬ ТАБОВ ==================== */
@media (max-width: 1024px) {
    .tournament-tabs {
        margin: 30px 15px 20px;
        border-radius: 10px 10px 0 0;
    }
    
    .tab-btn {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .tournament-tabs-wrapper {
        top: 0;
        padding: 0;
    }
    
    .tournament-tabs {
        margin: 0;
        border-radius: 0;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 0 10px;
    }
    
    .tab-btn {
        padding: 14px 16px;
        font-size: 0.85rem;
        gap: 6px;
        min-width: 100px;
        flex: 0 0 auto;
    }
    
    .tab-btn span {
        font-size: 0.85rem;
        display: inline;
    }
    
    .tab-btn i {
        font-size: 1rem;
    }
    
    .tab-content {
        padding: 0 10px;
    }
    
    /* Портрет: контент сверху вниз, без вертикального центрирования — плашка не уезжает на реальных телефонах */
    .tournament-hero {
        height: auto;
        min-height: 70vh;
        padding-top: max(70px, env(safe-area-inset-top)) !important;
        padding-bottom: 24px;
        align-items: center;
        justify-content: flex-start;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
        flex-shrink: 0;
    }
    
    /* Плашка «Турнир уже начался» / «Дедлайн закрыт» / «Сгенерировать сетку» — фиксируем в потоке, не даём уезжать вниз */
    .hero-organizer-alert {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex-shrink: 0;
        margin-top: 16px !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-stats .stat-item {
        width: auto;
        max-width: min(360px, 100%);
    }

    .hero-stats .stat-row {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .hero-stats .stat-label-inline {
        font-size: 0.9rem;
    }

    .hero-stats .stat-value-inline {
        font-size: 1.05rem;
        text-align: right;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .participants-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .tournament-container {
        padding: 20px 15px;
    }

    /* Адаптивность для мобильных устройств */
    .confirm-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .confirm-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .unregister-confirm-section {
        padding: 20px;
    }
    
    .confirm-content h3 {
        font-size: 1.5rem;
    }
}

/* Только при повороте телефона (ландшафт): вариант 1 + 4 — один блок и компактная плашка */
@media (max-width: 992px) and (orientation: landscape) {
    .tournament-hero {
        height: auto;
        min-height: auto;
        padding-top: max(78px, env(safe-area-inset-top)) !important;
        padding-bottom: 20px;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 16px 12px 12px;
        background: rgba(0, 0, 0, 0.25);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        margin: 0 12px;
        box-sizing: border-box;
    }
    
    .hero-title {
        margin-bottom: 20px;
    }
    
    .hero-stats {
        gap: 12px;
        margin-bottom: 0;
    }
    
    .hero-stats .stat-item {
        padding: 12px 16px;
        min-width: 0;
        width: 100%;
        max-width: 280px;
    }

    .hero-stats .stat-row {
        gap: 8px;
    }

    .hero-stats .stat-value-inline {
        font-size: 1rem;
    }
    
    .hero-organizer-alert {
        padding: 12px 14px !important;
        margin-top: 12px !important;
        border-radius: 10px !important;
    }
    
    .hero-organizer-alert-inner {
        flex-wrap: wrap;
        gap: 10px !important;
    }
    
    .hero-organizer-alert-inner > div:first-child {
        font-size: 1.5rem !important;
    }
    
    .hero-organizer-alert h4 {
        margin: 0 0 4px 0 !important;
        font-size: 1rem !important;
    }
    
    .hero-organizer-alert-text {
        margin: 0 0 10px 0 !important;
        font-size: 0.85rem !important;
        line-height: 1.35;
    }
    
    .hero-organizer-alert-btn {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }
    
    .hero-organizer-alert form {
        margin: 0 !important;
    }
}

/* Стили для улучшенной секции участников */
.participants-section {
    margin: 40px 0;
}

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

.section-header h2 {
    color: #ffd700;
    font-size: 2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.participants-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 215, 0, 0.1);
    padding: 10px 15px;
    border-radius: 25px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-size: 0.9rem;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.participants-filters {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.filter-group label {
    color: #ffd700;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: white;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.filter-group select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
    padding: 0 !important;
    width: 100%;
}

.participant-card {
    /* Чистый темный фон без обложки турнира за карточкой */
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 18px 0 0 !important;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
}

.participant-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.2);
}

.participant-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 15px;
    padding: 0 25px;
}

/* Круг одинаково для фото и заглушки (перебиваем глобальные img { max-width: 100%; height: auto }) */
.participant-card .participant-avatar img.avatar-img {
    display: block;
    box-sizing: border-box;
    width: 100px !important;
    height: 100px !important;
    min-width: 100px;
    min-height: 100px;
    max-width: 100px !important;
    max-height: 100px !important;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 4px solid rgba(255, 215, 0, 0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    flex-shrink: 0;
}

.participant-card:hover .participant-avatar img.avatar-img {
    border-color: #ffd700;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.participant-card .participant-avatar .avatar-placeholder {
    box-sizing: border-box;
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    max-width: 100px;
    max-height: 100px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #000;
    border: 4px solid rgba(255, 215, 0, 0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    flex-shrink: 0;
}

.participant-card:hover .participant-avatar .avatar-placeholder {
    border-color: #ffd700;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.participant-info {
    text-align: center;
    padding: 0 25px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.participant-name {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: white;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.participant-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.participant-link:hover {
    color: #ffd700;
    text-decoration: none;
}

.participant-username {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0 0 15px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Бейджи в одну строку */
.participant-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

/* Бейджи участников - более специфичные селекторы для избежания конфликтов с Bootstrap */
.participant-badges .badge {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 14px !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    white-space: nowrap;
    transition: all 0.3s ease;
    background: transparent !important;
}

.participant-badges .badge-weight {
    background: rgba(255, 215, 0, 0.15) !important;
    color: #ffd700 !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
}

.participant-badges .badge-club {
    background: rgba(255, 107, 107, 0.15) !important;
    color: #ff6b6b !important;
    border: 1px solid rgba(255, 107, 107, 0.3) !important;
}

.participant-badges .badge i {
    font-size: 0.75rem;
}

.participant-card:hover .participant-badges .badge {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.2);
}

/* Старые стили удалены, используются новые .badge стили выше */

.participant-actions {
    margin-top: auto;
    padding-top: 20px;
}

.btn-profile {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 237, 78, 0.15));
    border: 2px solid rgba(255, 215, 0, 0.5);
    color: #ffd700;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-profile:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 237, 78, 0.25));
    border-color: #ffd700;
    color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-profile i {
    font-size: 1rem;
}

.no-participants {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.no-participants i {
    font-size: 4rem;
    color: rgba(255, 215, 0, 0.3);
    margin-bottom: 20px;
}

.no-participants p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.no-participants .btn {
    margin-top: 20px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.no-participants .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: #000;
}

/* Адаптивность для участников */
@media (max-width: 992px) {
    .participants-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .participants-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .participants-stats {
        justify-content: center;
        width: 100%;
    }
    
    .participant-card {
        padding: 12px 0 0 !important;
    }
    
    .participant-avatar {
        margin: 0 0 8px;
        padding: 0 12px;
    }
    
    .participant-card .participant-avatar img.avatar-img,
    .participant-card .participant-avatar .avatar-placeholder {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px;
        min-height: 56px;
        max-width: 56px !important;
        max-height: 56px !important;
        font-size: 1.4rem;
    }
    
    .participant-info {
        padding: 0 12px 12px;
    }
    
    .participant-name {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    
    .participant-username {
        font-size: 0.75rem;
    }
    
    .participant-badges {
        gap: 4px;
        margin: 8px 0;
    }
    
    .badge {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
    
    .btn-profile {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    /* Расписание матчей — сетка 2 колонки на мобильной */
    .schedule-time-matches {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .schedule-match-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 10px !important;
    }
    
    .schedule-match-item .match-info {
        margin-bottom: 8px;
    }
    
    .schedule-match-item .match-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .participants-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .participant-card {
        padding: 10px 0 0 !important;
    }
    
    .participant-avatar {
        margin: 0 0 6px;
        padding: 0 10px;
    }
    
    .participant-card .participant-avatar img.avatar-img,
    .participant-card .participant-avatar .avatar-placeholder {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px;
        min-height: 48px;
        max-width: 48px !important;
        max-height: 48px !important;
        font-size: 1.2rem;
    }
    
    .participant-info {
        padding: 0 10px 10px;
    }
    
    .participant-name {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .participant-username {
        font-size: 0.7rem;
    }
    
    .participant-badges {
        gap: 3px;
        margin: 6px 0;
    }
    
    .badge {
        font-size: 0.6rem;
        padding: 3px 6px;
    }
    
    .btn-profile {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    /* Адаптация расписания для мобильных */
    .schedule-header {
        padding: 20px 15px;
    }
    
    .schedule-days-nav {
        gap: 10px;
    }
    
    .day-btn {
        padding: 12px 15px;
        min-width: 120px;
    }
    
    .schedule-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-input-group,
    .schedule-filter-select {
        width: 100%;
        min-width: auto;
    }
    
    .schedule-filter-input {
        padding-left: 15px;
        padding-right: 40px;
    }
    
    .schedule-mats-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .mat-stats {
        align-items: flex-start;
    }
}