/* IPL Teams CSS */
.ipl-teams-grid {
    margin: 20px 0;
}

/* Team Card New Wave Design */
.ipl-team-card {
    text-decoration: none !important;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    position: relative;
    border: none;
}

.ipl-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.ipl-team-card-top {
    position: relative;
    padding: 30px 20px 60px;
    text-align: center;
    flex-grow: 1;
    z-index: 1;
    overflow: hidden;
}

.ipl-team-card-top::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -10%;
    width: 120%;
    height: 100px;
    background: inherit;
    border-radius: 50%;
    z-index: -1;
}

.ipl-team-card-bottom {
    padding: 30px 20px 20px;
    text-align: center;
    z-index: 2;
    position: relative;
}

.ipl-team-card-bottom h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.ipl-team-logo img {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}


/* Player White Card Design */
.player-group-title {
    font-size: 24px;
    font-weight: bold;
    margin: 40px 0 20px;
    color: #1a1a1a;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
}

.player-white-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s;
    display: block;
    text-decoration: none !important;
    color: #333 !important;
}

.player-white-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.player-image-container {
    background: #f5f5f5;
    height: 180px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Small icons at top corners */
.player-role-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: #444;
}
.player-c_url-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 18px;
    color: #666;
    transform: rotate(-45deg);
}

.player-image-container img {
    height: 100%;
    width: auto;
    object-fit: contain;
    margin-bottom: -10px; /* Some images might need this to sit on baseline */
}

.player-info-container {
    padding: 15px 10px;
    background: white;
    border-top: 1px solid #eee;
}

.player-name-text {
    margin: 0;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
}

.player-role-text {
    margin: 5px 0 0;
    font-size: 12px;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .ipl-teams-grid {
        gap: 15px !important;
    }
}