/* Tournament Card Mobile Fix */
.tournament-card.style5 {
    position: relative;
    z-index: 2;
}

.tournament-card-shape,
.tournament-card-shape:before,
.tournament-card-shape:after {
    z-index: -1 !important;
    opacity: 0.1;
}

/* Remove any decorative lines or overlays */
.tournament-card.style5:before,
.tournament-card.style5:after,
.tournament-player-wrap:before,
.tournament-player-wrap:after,
.tournament-card-versus:before,
.tournament-card-versus:after {
    display: none !important;
}

.tournament-card.style5 {
    background: linear-gradient(135deg, rgba(13, 20, 33, 0.95) 0%, rgba(0, 0, 0, 0.9) 100%);
    border: 2px solid rgba(69, 248, 130, 0.5);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    overflow: hidden;
}

.tournament-card-shape {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.1;
}

.tournament-player-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.tournament-player-wrap.style2 {
    flex: 1;
}

.tournament-card-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(69, 248, 130, 0.6);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.tournament-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Team initials fallback for featured tournament card */
.team-initials-featured {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.2);
    transition: all 0.3s ease;
    border: 3px solid rgba(0, 255, 0, 0.6);
}

.tournament-card-versus {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 1;
    position: relative;
    background: transparent !important;
}

.tournament-card-versus:before,
.tournament-card-versus:after {
    display: none !important;
}

.tournament-card-versus img {
    width: 45px;
    height: 45px;
    filter: brightness(0) saturate(100%) invert(61%) sepia(91%) saturate(2633%) hue-rotate(88deg) brightness(103%) contrast(103%);
}

.tournament-card-content {
    position: relative;
    text-align: center;
    z-index: 1;
    padding: 0;
    margin: 0;
    background: transparent;
}

.tournament-card-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.tournament-card-subtitle {
    color: #45F882;
    font-size: 14px;
    margin: 0;
}

.tournament-card-time {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.tournament-card-date {
    color: #45F882;
    font-size: 14px;
    margin: 5px 0;
}

.tournament-card-venue {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 0;
}

/* Mobile Responsive - Maintain Landscape Layout Like Tablet */
@media (max-width: 767px) {
    .tournament-card.style5 {
        display: flex;
        flex-direction: row !important;
        gap: 15px;
        padding: 20px 15px;
        min-height: 0;
        align-items: center;
        justify-content: space-between;
        height: auto;
    }

    .tournament-player-wrap,
    .tournament-player-wrap.style2 {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin: 0;
        max-width: 35%;
        text-align: center;
    }

    .tournament-card-versus {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0 15px;
        margin: 0;
    }

    .tournament-card-img {
        width: 60px;
        height: 60px;
        border-width: 2px;
        flex-shrink: 0;
        margin-bottom: 8px;
    }

    .card-title-wrap {
        text-align: center;
        flex: 1;
    }

    .tournament-card-title {
        font-size: 12px;
        margin-bottom: 5px;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    .tournament-card-subtitle {
        font-size: 12px;
        margin: 0;
    }

    .tournament-card-versus img {
        width: 35px;
        height: 35px;
    }

    .tournament-card-content {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        background: transparent;
        padding: 0;
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .tournament-card-time {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .tournament-card-date {
        font-size: 12px;
        margin: 2px 0;
    }

    .tournament-card-venue {
        font-size: 11px;
        margin: 2px 0 0 0;
    }
    
    .team-initials-featured {
        font-size: 24px;
        border-width: 2px;
    }
}

/* Extra small screens - maintain landscape but slightly smaller */
@media (max-width: 480px) {
    .tournament-card.style5 {
        padding: 18px 12px;
        gap: 12px;
    }

    .tournament-card-img {
        width: 50px;
        height: 50px;
    }

    .tournament-card-title {
        font-size: 11px;
    }

    .tournament-card-subtitle {
        font-size: 11px;
    }

    .tournament-card-versus img {
        width: 30px;
        height: 30px;
    }

    .tournament-card-time {
        font-size: 18px;
    }

    .tournament-card-date {
        font-size: 11px;
    }

    .tournament-card-venue {
        font-size: 10px;
    }
    
    .team-initials-featured {
        font-size: 20px;
        border-width: 2px;
    }
}
