/* ===== FOTOS DE JOGADORES - GROUPED BY TEAM ===== */

#conteudoAba #gridFotosJogadores {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 4px;
}

/* Grupo de equipe */
#conteudoAba .fotos-grupo {
    background: linear-gradient(180deg, #0d0d14, #08080d);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s;
}
#conteudoAba .fotos-grupo:hover {
    border-color: rgba(212,160,23,0.3);
}

#conteudoAba .fotos-grupo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
}

#conteudoAba .fotos-grupo-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px;
}
#conteudoAba .fotos-grupo-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#conteudoAba .fotos-grupo-logo-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 7px;
    background: linear-gradient(135deg, #b8860b, #f5c518);
    color: #000;
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

#conteudoAba .fotos-grupo-info {
    flex: 1;
    min-width: 0;
}
#conteudoAba .fotos-grupo-nome {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#conteudoAba .fotos-grupo-meta {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 2px;
}

#conteudoAba .fotos-grupo-bandeira {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}

#conteudoAba .fotos-grupo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 14px;
    padding: 18px;
}

/* Card de foto individual */
#conteudoAba .foto-jog-card {
    position: relative;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.2s;
}
#conteudoAba .foto-jog-card:hover {
    border-color: rgba(212,160,23,0.4);
    background: rgba(212,160,23,0.04);
    transform: translateY(-2px);
}

#conteudoAba .foto-jog-label {
    cursor: pointer;
    display: block;
}

#conteudoAba .foto-jog-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 8px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(212,160,23,0.2);
    background: #0a0a0e;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}
#conteudoAba .foto-jog-card:hover .foto-jog-img {
    border-color: #f5c518;
}
#conteudoAba .foto-jog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#conteudoAba .foto-jog-img img.foto-jog-default {
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.95;
}

#conteudoAba .foto-jog-del {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: rgba(239,68,68,0.18);
    border: 1px solid rgba(239,68,68,0.4);
    color: #ef4444;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.2s;
}
#conteudoAba .foto-jog-del:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.1);
}

#conteudoAba .foto-jog-nick {
    font-size: 11px;
    font-weight: 800;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

#conteudoAba .fotos-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}
#conteudoAba .fotos-empty img {
    width: 80px;
    height: 80px;
    opacity: 0.5;
    margin-bottom: 14px;
    border-radius: 50%;
}
#conteudoAba .fotos-empty div {
    font-size: 13px;
    color: var(--text-gray);
}

/* Tema claro */
body.tema-claro #conteudoAba .fotos-grupo {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}
body.tema-claro #conteudoAba .fotos-grupo-header {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
}
body.tema-claro #conteudoAba .fotos-grupo-nome { color: #111 !important; }
body.tema-claro #conteudoAba .fotos-grupo-meta { color: #6b7280 !important; }
body.tema-claro #conteudoAba .foto-jog-card {
    background: #fafafa !important;
    border-color: #e5e7eb !important;
}
body.tema-claro #conteudoAba .foto-jog-img { background: #f3f4f6 !important; }
body.tema-claro #conteudoAba .foto-jog-nick { color: #111 !important; }
