/* ============================================================
   TABLA DE JUGADORAS - ICONOS E IMÁGENES
   ============================================================ */

.sp-template-player-list .sp-table-caption,
.sp-table-caption {
    background: #0a0a0a !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 12px 12px 0 0 !important;
    margin: 0 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.sp-template-player-list .sp-table-wrapper {
    overflow: auto;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    background: #ffffff;
}

.sp-player-list.sp-data-table {
    width: 100%;
    table-layout: auto !important;
    border-collapse: collapse;
    background: #ffffff;
    font-family: "Proza Libre", "Roboto", sans-serif;
    font-size: 14px !important;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.sp-player-list.sp-data-table thead th {
    background: #f5f5f5 !important;
    color: #111111 !important;
    padding: 12px 14px !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-align: center;
    border-bottom: 2px solid #ddd;
    white-space: nowrap;
}

.sp-player-list.sp-data-table thead th img,
.sp-player-list.sp-data-table thead th .wp-post-image,
.sp-player-list.sp-data-table thead th img.wp-post-image {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    display: inline-block !important;
    margin: 0 3px !important;
    max-width: 18px !important;
    min-width: 18px !important;
}

.sp-player-list.sp-data-table thead th [class^="sp-icon-"] {
    font-size: 18px !important;
    vertical-align: middle !important;
    display: inline-block !important;
    line-height: 1 !important;
    width: 18px !important;
    text-align: center !important;
}

.sp-player-list.sp-data-table thead th .sp-icon {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}

.sp-player-list.sp-data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eaeaea;
    vertical-align: middle;
    background: #ffffff;
    color: #111111;
    text-align: center;
}

.sp-player-list.sp-data-table tbody tr:nth-child(even) td {
    background: #f9f9f9;
}

.sp-player-list.sp-data-table tbody tr:hover td {
    background: #fff8c4 !important;
}

.sp-player-list.sp-data-table .data-name {
    text-align: left !important;
    white-space: nowrap !important;
    padding-right: 20px !important;
    min-width: 200px;
}

.sp-player-list.sp-data-table .data-name a {
    white-space: nowrap !important;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    text-decoration: none;
    color: #111111;
    font-weight: 500;
    font-size: 14px;
}

.sp-player-list.sp-data-table .data-name a:hover {
    color: #00cec9;
    text-decoration: underline;
}

.sp-player-list.sp-data-table .data-name.has-photo .player-photo {
    display: inline-block;
    vertical-align: middle;
}

.sp-player-list.sp-data-table .data-name.has-photo .player-photo img {
    width: 62px !important;
    height: 62px !important;
    border-radius: 50% !important;
    border: 3px solid #00cec9 !important;
    object-fit: cover;
    display: block;
}

.sp-player-list.sp-data-table .data-number {
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    min-width: 45px;
    font-size: 14px;
}

.sp-player-list.sp-data-table td[class*="data-"]:not(.data-name):not(.data-number) {
    text-align: center;
    white-space: nowrap;
    font-size: 14px;
}

@media (max-width: 768px) {
    .sp-player-list.sp-data-table {
        font-size: 13px !important;
        min-width: 650px;
    }
    .sp-player-list.sp-data-table td,
    .sp-player-list.sp-data-table th {
        padding: 8px 10px;
    }
    .sp-player-list.sp-data-table .data-name {
        min-width: 160px;
        padding-right: 12px !important;
    }
    .sp-player-list.sp-data-table .data-name.has-photo .player-photo img {
        width: 50px !important;
        height: 50px !important;
    }
    .sp-table-caption {
        font-size: 15px !important;
        padding: 10px 15px !important;
    }
    .sp-player-list.sp-data-table thead th img {
        width: 30px !important;
        height: 30px !important;
    }
    .sp-player-list.sp-data-table thead th [class^="sp-icon-"] {
        font-size: 30px !important;
        width: 30px !important;
    }
    .sp-player-list.sp-data-table thead th .sp-icon {
        font-size: 30px !important;
        width: 30px !important;
        height: 30px !important;
    }
}

/* ============================================================
   PERFIL DE EQUIPO - ESTILO PLANETA ONCE
   ============================================================ */

.team-profile-card {
    max-width: 1100px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    font-family: 'Proza Libre', 'Roboto', sans-serif;
    border-top: 4px solid var(--team-accent, #d21936);
}

.team-profile-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background-color: var(--team-bg, #f4f4f4);
}

.team-profile-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.team-profile-logo {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--team-accent, #d21936);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.team-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-profile-title {
    flex: 1;
}
.team-profile-name {
    font-size: 36px;
    font-weight: 800;
    color: var(--team-text, #0a0a0a);
    margin: 0;
    line-height: 1.2;
}
.team-profile-nickname {
    font-size: 18px;
    font-weight: 400;
    color: var(--team-accent, #d21936);
    margin-left: 6px;
}
.team-profile-fullname {
    display: block;
    font-size: 14px;
    color: var(--team-text, #0a0a0a);
    opacity: 0.7;
    margin-top: 2px;
}

.team-details-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 30px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 12px;
}

.team-details-col-left,
.team-details-col-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
    padding: 2px 0;
}

.detail-item.full-width {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 10px;
    margin-top: 4px;
}

.detail-label {
    flex: 0 0 auto;
    min-width: 100px;
    font-weight: 700;
    color: var(--team-accent, #d21936);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-align: left;
    white-space: nowrap;
}

.detail-value {
    flex: 1;
    font-weight: 400;
    color: var(--team-text, #0a0a0a);
    font-size: 0.95rem;
    text-align: left;
}
.detail-value a {
    color: var(--team-text, #0a0a0a);
    text-decoration: none;
    font-weight: 600;
}
.detail-value a:hover {
    text-decoration: underline;
    opacity: 0.7;
}

.team-sportspress-tabs {
    padding: 0 0 20px 0;
}
.team-sportspress-tabs .sp-tab-group {
    margin-top: 0;
}

.team-sportspress-tabs .sp-tab-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0 20px;
    background: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
    padding-top: 8px;
}

.team-sportspress-tabs .sp-tab-menu-item a {
    display: block;
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
    background: #eef0f3;
    color: #16161c;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: 0.2s ease;
    border: none;
    border-bottom: 3px solid transparent;
}

.team-sportspress-tabs .sp-tab-menu-item a:hover {
    background: var(--team-accent, #d21936);
    color: #ffffff;
}

.team-sportspress-tabs .sp-tab-menu-item-active a {
    background: #0a0a0a;
    color: var(--team-accent, #d21936);
    border-bottom-color: var(--team-accent, #d21936);
}

.team-sportspress-tabs .sp-tab-content {
    padding: 0 20px 20px;
}

.team-sportspress-tabs .sp-data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.team-sportspress-tabs .sp-data-table th {
    background: #0a0a0a;
    color: var(--team-accent, #d21936);
    padding: 11px 10px;
    font-size: 13px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.team-sportspress-tabs .sp-data-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.team-sportspress-tabs .sp-table-caption {
    font-size: 17px;
    font-weight: 800;
    margin: 20px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0a0a0a;
}

.team-sportspress-tabs .sp-template .sp-table-caption {
    display: none;
}

@media (max-width: 768px) {
    .team-sportspress-tabs .sp-tab-menu {
        display: none !important;
    }
    .team-sportspress-tabs .sp-tab-content {
        display: block !important;
        padding: 0 !important;
        border-bottom: 1px solid #eee;
        margin: 0 12px;
    }
    .team-sportspress-tabs .sp-tab-content:last-child {
        border-bottom: none;
    }
    .team-sportspress-tabs .sp-tab-content .sp-accordion-title {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        font-weight: 700;
        font-size: 15px;
        cursor: pointer;
        background: #fafafa;
        border-radius: 8px;
        margin: 8px 0 0 0;
        transition: background 0.3s, color 0.3s;
        color: #0a0a0a;
        border-left: 3px solid var(--team-accent, #d21936);
        user-select: none;
    }
    .team-sportspress-tabs .sp-tab-content .sp-accordion-title:hover {
        background: #f0f0f0;
    }
    .team-sportspress-tabs .sp-tab-content .sp-accordion-title .sp-accordion-icon {
        font-size: 14px;
        transition: transform 0.3s;
        color: var(--team-accent, #d21936);
    }
    .team-sportspress-tabs .sp-tab-content.active .sp-accordion-title .sp-accordion-icon {
        transform: rotate(180deg);
    }
    .team-sportspress-tabs .sp-tab-content .sp-tab-pane-inner {
        display: none;
        padding: 0 16px 16px;
    }
    .team-sportspress-tabs .sp-tab-content.active .sp-tab-pane-inner {
        display: block;
    }
    .team-sportspress-tabs .sp-data-table {
        font-size: 13px;
        min-width: 500px;
    }
    .team-sportspress-tabs .sp-data-table th,
    .team-sportspress-tabs .sp-data-table td {
        padding: 6px 8px;
        font-size: 12px;
    }
    .team-profile-header {
        padding: 20px 16px 16px;
    }
    .team-profile-header-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .team-profile-logo {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
    }
    .team-profile-name {
        font-size: 22px;
    }
    .team-profile-nickname {
        font-size: 16px;
    }
    .team-profile-fullname {
        font-size: 13px;
    }
    .team-details-two-columns {
        grid-template-columns: 1fr;
        gap: 4px 0;
        padding-top: 12px;
    }
    .team-details-col-left,
    .team-details-col-right {
        gap: 4px;
    }
    .detail-label {
        min-width: 80px;
        font-size: 0.6rem;
    }
    .detail-value {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .team-profile-name {
        font-size: 18px;
    }
    .team-profile-nickname {
        font-size: 14px;
    }
    .detail-label {
        min-width: 70px;
        font-size: 0.55rem;
    }
    .detail-value {
        font-size: 0.8rem;
    }
    .team-sportspress-tabs .sp-tab-content .sp-accordion-title {
        font-size: 13px;
        padding: 12px 14px;
    }
}

.team-edit-link .edit-link a.button {
    background: var(--team-accent, #d21936);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.team-edit-link .edit-link a.button:hover {
    background: #000;
    color: var(--team-accent, #d21936);
}