        :root {
            --primary-color: #2c3e50;
            --secondary-color: #3498db;
            --accent-color: #e74c3c;
        }
        
        body { 
            background: #f8f9fa; 
            overflow-x: hidden;
        }
        .container { max-width: 1400px; margin-top: 20px; }
        
        .navbar {
            background-color: var(--primary-color);
            padding: 1rem 0;
            margin-bottom: 2rem;
        }

        .navbar-brand {
            color: white;
            font-weight: 600;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .navbar-brand:hover {
            color: var(--secondary-color);
        }

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

        .navbar-text a {
            color: var(--secondary-color);
            text-decoration: none;
        }

        .navbar-text a:hover {
            text-decoration: underline;
        }
        
        /* Estilos para o header melhorado */
        /* Sobrescreve _a11y_styles (p.match-name 1.25rem) no subtítulo ano/fonte */
        .header-section p.match-name {
            font-size: 0.85rem;
            font-weight: 400;
            line-height: 1.35;
        }

        #matchSource {
            font-size: 0.75rem;
            line-height: 1.35;
            color: rgba(255, 255, 255, 0.75);
        }

        #matchSource a {
            color: rgba(255, 255, 255, 0.9);
            text-decoration: underline;
            word-break: break-all;
        }
        .back-button {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            font-weight: 500;
            padding: 0.4rem 0.8rem;
            border-radius: 6px;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            font-size: 0.85rem;
        }

        .back-button:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.5);
            color: white;
            transform: translateX(-1px);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        }
        /* Busca de Atletas */
        .athlete-search-container {
            background: white;
            padding: 1rem;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            margin-bottom: 1rem;
        }

        .athlete-search-container h5 {
            font-size: 0.9rem;
            margin-bottom: 0.75rem;
        }

        .athlete-search-input .form-control-lg {
            font-size: 0.9rem;
            padding: 0.5rem 0.75rem;
        }

        .athlete-search-input {
            position: relative;
        }

        .athlete-search-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #ddd;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            max-height: 400px;
            overflow-y: auto;
            z-index: 1000;
            display: none;
            margin-top: 5px;
        }

        .athlete-search-results.show {
            display: block;
        }

        .athlete-result-item {
            padding: 0.75rem 1rem;
            cursor: pointer;
            border-bottom: 1px solid #f0f0f0;
            transition: background 0.2s;
        }

        .athlete-result-item:hover {
            background: #f8f9fa;
        }

        .athlete-result-item:last-child {
            border-bottom: none;
        }

        .athlete-result-name {
            font-weight: 600;
            color: #2c3e50;
        }

        .athlete-result-meta {
            font-size: 0.85rem;
            color: #6c757d;
            margin-top: 0.25rem;
        }

        /* Cards de Navegação */
        .nav-card {
            background: white;
            border-radius: 8px;
            padding: 1rem;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            text-decoration: none;
            color: inherit;
            display: block;
            height: 100%;
        }

        .nav-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            text-decoration: none;
            color: inherit;
        }

        .nav-card-icon {
            font-size: 2rem;
            color: var(--secondary-color);
            margin-bottom: 0.75rem;
        }

        .nav-card-title {
            font-size: 1rem;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 0.4rem;
        }

        .nav-card-description {
            font-size: 0.8rem;
            color: #6c757d;
        }

        /* Área de Performance do Atleta */
        .athlete-performance-container {
            background: white;
            padding: 1.5rem;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            margin-top: 1.5rem;
            display: none;
        }

        .athlete-performance-container.show {
            display: block;
        }

        .performance-header {
            border-bottom: 2px solid #e9ecef;
            padding-bottom: 1rem;
            margin-bottom: 1.5rem;
        }

        .performance-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .stat-card {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            padding: 1rem;
            border-radius: 8px;
            border-left: 4px solid var(--secondary-color);
        }

        .stat-label {
            font-size: 0.85rem;
            color: #6c757d;
            margin-bottom: 0.25rem;
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: 600;
            color: #2c3e50;
        }

        .stages-summary {
            margin-top: 1.5rem;
        }

        .stage-item {
            padding: 0.75rem;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

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

        /* Seção de Informações */
        .info-section {
            background: white;
            padding: 1.5rem;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            margin-top: 1.5rem;
        }

        .info-card {
            margin-bottom: 1.5rem;
            padding: 1rem;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid var(--secondary-color);
        }

        .info-card:last-child {
            margin-bottom: 0;
        }

        .info-card-title {
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .info-card-description {
            color: #6c757d;
            font-size: 0.9rem;
            line-height: 1.6;
        }

        .info-card .btn {
            font-size: 0.85rem;
            padding: 0.4rem 0.8rem;
            margin-top: 0.5rem;
        }

        /* Quick Nav Stages */
        .stages-quick-nav {
            padding: 1.5rem;
        }

        .stages-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .stage-btn {
            padding: 0.4rem 0.7rem;
            font-size: 0.8rem;
            border-radius: 6px;
            border: 1px solid #dee2e6;
            background: #f8f9fa;
            color: #2c3e50;
            text-decoration: none;
            transition: all 0.2s ease;
            font-weight: 500;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
        }

        .stage-btn:hover {
            background: var(--secondary-color);
            color: white;
            border-color: var(--secondary-color);
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            text-decoration: none;
        }

        .stage-btn i {
            font-size: 0.7rem;
            margin-right: 0.3rem;
        }

        /* Loading */
        .loading {
            text-align: center;
            padding: 2rem;
            color: #6c757d;
        }

        .spinner-border {
            width: 3rem;
            height: 3rem;
        }

        /* Content Area */
        #dynamicContent {
            min-height: 400px;
            display: none; /* Oculto por padrão, mostrado quando há hash route */
            background: white;
            padding: 1.5rem;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            margin-top: 1.5rem;
        }

        /* Banner de Anúncio */
        .banner-container {
            margin-bottom: 1.5rem;
        }

        .banner-content {
            padding: 0.5rem;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .container {
                margin-top: 10px;
                padding: 0 10px;
            }
            
            .header-section {
                padding: 1rem;
                margin-bottom: 1rem;
            }
            
            .page-title {
                font-size: 1.2rem;
            }
            
            .match-name,
            .header-section p.match-name {
                font-size: 0.75rem;
            }

            #matchSource {
                display: block;
                margin-top: 0.2rem;
                margin-left: 0 !important;
                font-size: 0.65rem;
            }

            .header-icon {
                font-size: 1.3rem;
                width: 35px;
                height: 35px;
            }
            .btn-group .btn {
                margin-bottom: 0;
                font-size: 0.7rem;
                padding: 0.35rem 0.5rem;
                white-space: nowrap;
                flex: 1;
                min-width: 0;
            }
            
            /* Cards em 2 colunas no mobile */
            #navigationCards .col-md-4,
            #navigationCards .col-sm-6 {
                flex: 0 0 50%;
                max-width: 50%;
                padding-left: 0.5rem;
                padding-right: 0.5rem;
            }
            
            .nav-card {
                margin-bottom: 0.75rem;
                padding: 0.75rem;
            }
            
            .nav-card-icon {
                font-size: 1.8rem;
                margin-bottom: 0.6rem;
            }
            
            .nav-card-title {
                font-size: 0.9rem;
                margin-bottom: 0.35rem;
            }
            
            .nav-card-description {
                font-size: 0.75rem;
            }
            
            /* Ajustar fontes gerais no mobile */
            body {
                font-size: 0.9rem;
            }
            
            h5 {
                font-size: 1rem;
            }
            
            h6 {
                font-size: 0.9rem;
            }
            
            .athlete-search-container h5 {
                font-size: 1rem;
            }
            
            .info-section h5 {
                font-size: 1rem;
            }
            
            .info-card-title {
                font-size: 0.95rem;
            }
            
            .info-card-description {
                font-size: 0.85rem;
            }
            
            .info-card .btn {
                font-size: 0.8rem;
                padding: 0.35rem 0.7rem;
            }
            
            .stat-label {
                font-size: 0.75rem;
            }
            
            .stat-value {
                font-size: 1.2rem;
            }
            
            /* Gráficos no mobile */
            .chart-container {
                height: 250px !important;
            }
            
            /* Resumo da Prova no mobile */
            .info-section .row.g-3 {
                margin-left: -0.5rem;
                margin-right: -0.5rem;
            }
            
            .info-section .row.g-3 > [class*="col-"] {
                padding-left: 0.5rem;
                padding-right: 0.5rem;
            }
            
            .info-section .info-card {
                padding: 0.75rem;
                margin-bottom: 0.75rem;
            }
            
            .info-section .stat-label {
                font-size: 0.7rem;
                margin-bottom: 0.25rem;
            }
            
            .info-section .stat-value {
                font-size: 1.5rem;
            }
            
            .info-section .info-card-title {
                font-size: 0.85rem;
                margin-bottom: 0.5rem;
            }
            
            .info-section .info-card-description .row.g-2 {
                margin-left: -0.25rem;
                margin-right: -0.25rem;
            }
            
            .info-section .info-card-description .row.g-2 > [class*="col-"] {
                padding-left: 0.25rem;
                padding-right: 0.25rem;
            }
            
            .info-section .info-card-description .p-2 {
                padding: 0.4rem !important;
            }
            
            .info-section .info-card-description .badge {
                font-size: 0.7rem;
            }
            
            /* Gráficos - tamanho fixo em todas as telas */
            .chart-container {
                height: 350px !important;
            }
            
            .info-section .info-card-title {
                font-size: 0.85rem;
                margin-bottom: 0.5rem;
            }
            
            .info-section h5 {
                font-size: 0.95rem;
                margin-bottom: 0.75rem !important;
            }
            
            /* Quick Nav Stages no mobile */
            .stages-quick-nav {
                padding: 1rem !important;
            }
            
            .stages-quick-nav h5 {
                font-size: 0.95rem !important;
                margin-bottom: 0.75rem !important;
            }
            
            .stages-buttons {
                gap: 0.35rem;
            }
            
            .stage-btn {
                padding: 0.3rem 0.5rem;
                font-size: 0.7rem;
            }
            
            .stage-btn i {
                font-size: 0.6rem;
                margin-right: 0.25rem;
            }
            
            /* Busca de Atletas no mobile */
            .athlete-search-container {
                padding: 0.75rem;
            }
            
            .athlete-search-container h5 {
                font-size: 0.85rem;
                margin-bottom: 0.6rem;
            }
            
            .athlete-search-input .form-control-lg {
                font-size: 0.85rem;
                padding: 0.45rem 0.65rem;
            }

            .match-share-banner {
                margin-bottom: 0.85rem;
            }

            .match-share-banner__btn {
                font-size: 0.78rem;
                padding: 0.5rem 0.65rem;
            }
        }

        @media (min-width: 769px) {
            .btn-group .btn {
                white-space: nowrap;
                overflow: visible;
                text-overflow: clip;
                font-size: 0.85rem;
                padding: 0.5rem 1rem;
                min-width: auto;
            }

            .header-actions {
                align-items: flex-end;
                justify-content: center;
                margin-top: 0;
            }
            
            .header-section .row {
                align-items: center;
            }
            
            /* Quick Nav Stages no desktop */
            .stages-quick-nav {
                padding: 0.75rem;
            }
            
            .stages-quick-nav-title {
                font-size: 0.8rem;
            }
            
            .stage-btn {
                padding: 0.3rem 0.6rem;
                font-size: 0.75rem;
            }
            
            /* Busca de Atletas no desktop */
            .athlete-search-container {
                padding: 1rem;
            }
            
            .athlete-search-container h5 {
                font-size: 0.9rem;
            }
            
            .athlete-search-input .form-control-lg {
                font-size: 0.9rem;
                padding: 0.5rem 0.75rem;
            }
        }
