/* =========================================================
   mediaDIV Football Manager
   Divi First Frontend Framework
========================================================= */

.mdv-wrapper {
    width: 100%;
}

/* =========================================================
   GRID SYSTEM
========================================================= */

.mdv-grid {
    display: grid;
    gap: 30px;
}

.mdv-team-grid,
.mdv-player-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* =========================================================
   CARD SYSTEM
========================================================= */

.mdv-card {
    overflow: hidden;
    transition: all 0.3s ease;
}

.mdv-card-inner {
    height: 100%;
}

/* =========================================================
   MEDIA
========================================================= */

.mdv-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mdv-card-media img {
    width: 100%;
    height: auto;
    display: block;
}

.mdv-image-cover img {
    object-fit: cover;
}

.mdv-image-contain img {
    object-fit: contain;
}

/* =========================================================
   CONTENT
========================================================= */

.mdv-card-content {
    padding: 30px;
}

.mdv-title {
    margin-bottom: 20px;
    line-height: 1.2;
}

.mdv-meta {
    margin-bottom: 15px;
}

.mdv-meta:last-child {
    margin-bottom: 0;
}

/* =========================================================
   BADGES
========================================================= */

.mdv-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

/* =========================================================
   TEAM CARD
========================================================= */

.mdv-team-card .mdv-card-media {
    min-height: 240px;
    padding: 30px;
}

/* =========================================================
   PLAYER CARD
========================================================= */

.mdv-player-card .mdv-card-media {
    min-height: 320px;
}

.mdv-player-card .mdv-card-media img {
    width: 100%;
}

/* =========================================================
   MATCH CARD
========================================================= */

.mdv-next-match-card {
    padding: 50px;
}

.mdv-match-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

.mdv-match-team {
    text-align: center;
}

.mdv-match-team img {
    max-width: 180px;
    width: 100%;
    height: auto;
    margin: 0 auto 20px;
}

.mdv-match-center {
    text-align: center;
}

.mdv-match-vs {
    line-height: 1;
    margin-bottom: 15px;
}

/* =========================================================
   LINKS
========================================================= */

.mdv-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.mdv-card-link:hover {
    text-decoration: none;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 980px) {

    .mdv-match-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mdv-next-match-card {
        padding: 30px;
    }

    .mdv-card-content {
        padding: 20px;
    }

}
/*
|--------------------------------------------------------------------------
| Match Cards
|--------------------------------------------------------------------------
*/

.mdv-match-card {
    text-decoration: none;
    color: inherit;
}

.mdv-match-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}

.mdv-match-status--live {
    background: #dc2626;
    color: #fff;
}

.mdv-match-status--finished {
    background: #111827;
    color: #fff;
}

.mdv-match-status--upcoming {
    background: #2563eb;
    color: #fff;
}

.mdv-match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.mdv-match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.mdv-match-team img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.mdv-match-score {
    font-size: 28px;
    font-weight: 800;
}

.mdv-match-meta {
    margin-top: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 768px) {

    .mdv-match-teams {
        grid-template-columns: 1fr;
    }

    .mdv-match-score {
        margin: 10px 0;
    }
}