.team-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.team-card .badge-role {
    position: absolute;
    top: 0;
    left: 0;
    background: #009b43;
    padding: 5px 30px 5px 15px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    color: #fff;
}
.team-card img {
    width: 100%;
    height: auto;
}
.team-card .player-footer {
    padding: 15px;
    background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    min-height: 60px; /* Tambahan: agar tinggi cukup untuk teks dan nomor */
    text-align: center;
}

.team-card .player-name-x {
    font-weight: 500;
    font-size: 16px;
    width: 100%;
}

.team-card .player-number-x {
    background: #009b43;
    color: #fff;
    padding: 5px 12px;
    font-weight: 700;
    font-size: 18px;
    border-radius: 3px;
    line-height: 1;
}

.show_detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Overlay gelap */
    color: #fff !important;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-size: 16px;
    font-weight: bold;
}

.team-card:hover .show_detail {
    opacity: 1;
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .team-card .player-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.player-img {
    width: 100%;
    height: auto;
    box-shadow: 0 0px 20px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

/* Detail pemain container */
.player-detail {
    padding: 15px 25px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    text-align: left;
}

/* Teks label dan isi */
.player-detail p {
    font-size: 16px;
    margin: 10px 0;
    line-height: 1.5;
    text-align: left;
}

.player-detail h3 {
    color: #333;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.player-detail .detail-label {
    color: #333;
    width: 215px;
    display: inline-block;
    font-weight: bold;
}

/* Responsif */
@media (max-width: 768px) {
    .player-detail strong {
        width: auto;
        display: block;
        margin-bottom: 4px;
    }

    .player-detail p {
        margin-bottom: 15px;
    }
}