      {% endif %}
                                    </div>
                                    <!-- Team Info -->
                                    <div>
                                        <h3 class="text-xl font-bold text-gray-800">{{ team.name }}</h3>
                                        {% if team.rank %}
                                            <span class="inline-block px-3 py-1 text-sm rounded-full mt-1 {% if team.rank == 'GOLD' %}bg-[#D4AF37] text-white {% elif team.rank == 'SILVER' %}