.container-lideres { 
        width: 100%;
        max-width: 1200px; 
        margin: 40px auto; 
        padding: 0 10px;
        box-sizing: border-box;
    }
    .c_lss {

        background: linear-gradient(135deg, #183d88 35%, #407efa 65%);
        color: #FFFFFF;
        padding: 0px;
        border-radius: 8px 8px 16px 16px;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        width: 100%;
        max-width: 1300px; 
        margin: 0px auto; 
        padding: 20px 10px;
        box-sizing: border-box;
}
    
    .c_lss h2 { 
        margin: 0;
        font-weight: 700;
        font-size: 1.6rem;
        font-family: 'Avenir';
        letter-spacing: -0.02em;
        font-style: italic; 
    }

    .c_lss P { 
        margin: 4px 0 0 0;
        font-weight: 700;
        color: #FFC72C;
        font-size: 0.95rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: center;
    }

    .c_lss img {
        max-width: 80px;
        border-radius: 25px;
        padding: 5px;
    }

    /* Secciones principales (Bateo / Pitcheo) */
    .seccion-block {
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        margin-bottom: 30px;
        overflow: hidden;
        border: 1px solid #e2e8f0;
    }

    .seccion-header {
        background: linear-gradient(135deg, #183d88 35%, #407efa 65%);
        color: #fff;
        padding: 15px 20px;
        font-size: 18px;
        font-weight: bold;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .seccion-header.pitcher {
        background: linear-gradient(135deg, #1a7220 35%, #16ed0a 65%);
    }

    /* Barra de Botones (Estilo Pestañas compacto y deslizable en móvil) */
    .tabs-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        padding: 12px 30px;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }

    .tab-btn {
        background-color: #e2e8f0;
        color: #334155;
        border: none;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: center;
        white-space: nowrap; 
    }

    .tab-btn:hover {
        background-color: #4380f9;
        color: #fff;
    }

    .tab-btn.active {
        background-color: #0b2d77;
        color: #ffffff;
        box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
    }

    .seccion-header.pitcher ~ .tabs-bar .tab-btn.active {
        background-color:#0b2d77;
        box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
    }

    .card-display {
        padding: 20px;
    }

    .card {
        background: #fff;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        width: 100%;
        overflow: hidden;
        font-weight: 900;
        color: #0f172a;
    }

    .card-title-bar {
        background: linear-gradient(135deg, #1e4ca9 40%, #4985fe 55%);
        padding: 10px 15px;
        font-weight: bold;
        width: 100%;
        color: #fdfdfd;
        border-bottom: 1px solid #f6f8fa;
        font-size: 18px;
        text-align: left;
    }

    

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }

    .container-lideres table { 
        width: 100%; 
        min-width: 480px; 
        border-collapse: collapse; 
        text-align: left; 
        font-size: 16px; 
    }

    .container-lideres th, 
    .container-lideres td { 
        padding: 10px 14px; 
        border-bottom: 1px solid #edf2f7; 
        vertical-align: middle; 
        white-space: nowrap; 
        text-align: center;
    }

    .container-lideres th { 
        background: linear-gradient(to right, #10295c, #0a0a80, #10295c);            
        color:  #ffffff; 
        font-weight: bold; 
        position: sticky;
        top: 0;
        z-index: 1;
    }

    
    /* 1. Columna de Posición (#) */
    .container-lideres th:nth-child(1),
    .container-lideres td:nth-child(1) {
        position: sticky;
        left: 0;
        z-index: 2;
        width: 35px;
    }
    
    
    .container-lideres td:nth-child(1) { 
        background-color: #ffffff; 
    }
    .container-lideres tr:nth-child(even) td:nth-child(1) { 
        background-color: #fafafa; 
    }
    .container-lideres tr.campeon td:nth-child(1) { 
        background-color: #fef3c7 !important; 
    }

    /* 2. Columna del Jugador */
    .container-lideres th:nth-child(2),
    .container-lideres td:nth-child(2) {
        position: sticky;
        left: 35px; 
        z-index: 2;
        max-width: 280px; 
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .container-lideres th:nth-child(2) { 
        background: linear-gradient(to right, #0a1b3d, #0a0a80, #0a1b3d);            
    }
    .container-lideres td:nth-child(2) { 
        background-color: #ffffff; 
        
    }
    .container-lideres tr:nth-child(even) td:nth-child(2) { 
        background-color: #fafafa; 
    }
    .container-lideres tr.campeon td:nth-child(2) { 
        background-color: #fef3c7 !important; 
        
    }

    .container-lideres tr:nth-child(even) { 
      background-color: #fafafa; 
    }
    
    .container-lideres tr.campeon { 
      background-color: #fef3c7 !important; 
      font-weight: bold; 
    }

    .badge-oro { 
      background: #d97706; 
      color: white; 
      padding: 2px 6px; 
      border-radius: 10px; 
      font-size: 14px; 
    }

    .player-cell {
      display: flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap; 
      overflow: hidden;
    }

    .player-avatar {
      width: 60px !important;
      height: 60px !important;
      min-width: 60px !important;
      min-height: 60px !important;
      max-width: 60px !important;
      max-height: 60px !important;
      border-radius: 50%;
      object-fit: cover !important; /* Fuerza a la imagen a recortarse en círculo sin deformarse */
      border: 2px solid #cbd5e1;
      background-color: #e2e8f0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: bold;
      color: #475569;
      flex-shrink: 0 !important; /* Evita que la celda comprima la imagen */
    }

    .container-lideres tbody tr:hover {
        background-color: #e2e8f0 !important;
        font-weight: bold;
        font-size: 16px;
    }

    .container-lideres tbody tr:hover td:nth-child(1),
    .container-lideres tbody tr:hover td:nth-child(2) {
        background-color: #e2e8f0 !important; 
    }

    .container-lideres tr.campeon:hover td,
    .container-lideres tr.campeon:hover td:nth-child(1),
    .container-lideres tr.campeon:hover td:nth-child(2) {
        background-color: #fde68a !important; 
        font-weight: bold;

    }

    .container-lideres tbody tr:hover .player-info span {
        color: #1d4ed8; 
    }


    /* Ajustes específicos para móviles pequeños (425px o menos) */
    @media (max-width: 440px) {
      .container-lideres {
        padding: 0 2px;
      }

      .card-display {
        padding: 8px;
      }

      .tabs-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 8px;
        gap: 5px;
      }

      /* Botones más compactos */
      .tab-btn {
        font-size: 10px;
        padding: 5px 9px;
        flex-shrink: 0; 
      }

      .container-lideres th, 
      .container-lideres td {
        padding: 8px 8px;
        font-size: 11px;
      }

      .container-lideres th:nth-child(2),
      .container-lideres td:nth-child(2) {
        max-width: 200px; 
      }

      .player-cell {
        gap: 6px;
      }

      .player-avatar {
        width: 35px;
        height: 35px;
        font-size: 10px;
      }
    }

