
        /* Дополнительные стили для модального окна и печати */
        
        /* Plasman Button Styles */
        .btn-plasman {
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid white;
            color: white;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-plasman:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        /* Modal Styles */
        .standings-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 9999;
            overflow-y: auto;
        }

        .standings-modal-content {
            position: relative;
            max-width: 600px;
            width: 90%;
            margin: 50px auto;
            background: var(--bg-primary, #ffffff);
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            animation: modalSlideIn 0.3s ease;
        }

        @keyframes modalSlideIn {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .standings-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 25px;
            border-bottom: 2px solid var(--primary-color, #2E7D32);
            background: var(--bg-primary, #ffffff);
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .standings-modal-header h2 {
            margin: 0;
            color: var(--primary-color, #2E7D32);
            font-size: 1.5rem;
        }

        .modal-close-btn {
            background: #6c757d;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.3s ease;
        }

        .modal-close-btn:hover {
            background: #5a6268;
        }

        .standings-modal-body {
            padding: 20px 25px;
            max-height: 60vh;
            overflow-y: auto;
        }

        .standings-modal-footer {
            padding: 15px 25px;
            border-top: 1px solid #ddd;
            text-align: center;
            font-size: 12px;
            color: #666;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            background: var(--bg-primary, #ffffff);
        }

        .btn-print {
            background: var(--primary-color, #2E7D32);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.3s ease;
        }

        .btn-print:hover {
            background: #1b5e20;
        }

        .loading-spinner {
            text-align: center;
            padding: 40px;
            color: #666;
        }

        /* Standings Table Styles */
        .standings-table {
            width: 100%;
            border-collapse: collapse;
            font-family: Arial, sans-serif;
        }

        .standings-table th {
            background: var(--primary-color, #2E7D32);
            color: #ffffff;
            padding: 12px;
            text-align: left;
            font-weight: bold;
        }

        .standings-table td {
            padding: 10px;
            border-bottom: 1px solid #ddd;
            color: #000000;
        }

        .standings-table tr {
            background: #ffffff;
        }

        .standings-table .number-col {
            width: 70px;
            text-align: center;
        }

        .standings-table .points-col {
            width: 100px;
            text-align: center;
        }
        
        /* Мобильная версия фрейма */
@media (max-width: 768px) {
    .standings-modal-content {
        width: 95%;
        margin: 20px auto;
        border-radius: 8px;
    }
    
    .standings-modal-header {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .standings-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-close-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .standings-modal-body {
        padding: 15px;
        max-height: 70vh;
    }
    
    .standings-table th,
    .standings-table td {
        padding: 8px 5px;
        font-size: 12px;
    }
    
    .standings-table .number-col {
        width: 50px;
    }
    
    .standings-table .points-col {
        width: 65px;
    }
    
    .standings-modal-footer {
        padding: 10px 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-print {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .standings-table th,
    .standings-table td {
        padding: 6px 3px;
        font-size: 11px;
    }
    
    .standings-table .number-col {
        width: 40px;
    }
    
    .standings-table .points-col {
        width: 55px;
    }
    
    .standings-modal-header h2 {
        font-size: 1rem;
    }
    
    .standings-modal-body {
        padding: 10px;
        max-height: 75vh;
    }
}

/* Print Styles - только для печати содержимого модального окна */
@media print {
    /* Скрываем всё на странице */
    body, html {
        margin: 0;
        padding: 0;
        height: auto;
    }
    
    /* Скрываем всё, кроме модального окна */
    .tournament-header,
    .tournament-content,
    header,
    footer,
    .btn-plasman,
    .modal-close-btn,
    .btn-print,
    .standings-modal-footer {
        display: none !important;
    }
    
    /* Показываем только содержимое модального окна */
    .standings-modal {
        display: block !important;
        position: relative !important;
        background: white !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
    
    .standings-modal-content {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
    }
    
    .standings-modal-header {
        position: relative !important;
        border-bottom: 2px solid #000 !important;
        margin: 0 !important;
        padding: 15px 20px !important;
        background: white !important;
    }
    
    .standings-modal-body {
        padding: 20px !important;
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }
    
    .standings-table {
        width: 100% !important;
        page-break-inside: avoid;
    }
    
    .standings-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    .standings-table th {
        background: #333 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .standings-table td {
        color: #000000 !important;
    }
    
    /* Убираем дублирование страниц */
    .standings-modal {
        page-break-after: avoid;
        page-break-before: avoid;
    }
}
