body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #4b6cb7, #182848);
    color: #fff;
}

header {
    text-align: center;
    padding: 20px;
    background: #1f2937;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.table-container {
    margin: 20px auto;
    width: 95%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

thead {
    background: #2563eb;
    color: #fff;
}

thead th {
    padding: 15px;
    font-size: 16px;
}

tbody tr {
    transition: background 0.3s ease;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

tbody td {
    padding: 10px;
    font-size: 14px;
    color: #fff;
}

.circle-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1f2937;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    color: #fff;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-button {
    font-size: 24px;
    cursor: pointer;
    float: right;
    color: #fff;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #ff4500;
}

thead th:first-child,
tbody td:first-child {
    text-align: center;
    width: 50px;
}

.mobile-info {
    display: none;
    text-align: center;
    color: #ffcc00;
    font-size: 14px;
    margin-top: 10px;
}

/* Estilo para las cards de jugadores */
.player-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.player-card {
    background: #2563eb;
    border-radius: 8px;
    padding: 15px;
    color: #fff;
    flex: 1 1 calc(50% - 10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.player-card h3 {
    margin: 10px 0;
    font-size: 18px;
}

.player-card p {
    margin: 5px 0;
    font-size: 14px;
}

/* Vista móvil */
@media (max-width: 768px) {
    table thead th:not(:nth-child(1), :nth-child(2), :nth-child(3), :nth-child(7)) {
        display: none;
    }

    table tbody td:not(:nth-child(1), :nth-child(2), :nth-child(3), :nth-child(7)) {
        display: none;
    }

    .mobile-info {
        display: block;
    }
}

.search-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#search-bar {
    padding: 10px;
    font-size: 16px;
    width: 80%;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#search-button {
    padding: 10px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#search-button:hover {
    background-color: #174ea6;
}
