/**
 * FIFA national-team ranking on match pages — dark / light.
 */

.match-fifa-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    background: rgba(57, 219, 191, 0.14);
    color: #39dbbf;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.match-fifa-badge:hover {
    opacity: 0.9;
    color: #39dbbf;
    background: rgba(57, 219, 191, 0.22);
}

html.light:not(.dark) .match-fifa-badge {
    background: rgba(22, 174, 148, 0.12);
    color: #16ae94;
}

html.light:not(.dark) .match-fifa-badge:hover {
    color: #16ae94;
    background: rgba(22, 174, 148, 0.2);
}

.match-profile-details .team-item h3 {
    margin-bottom: 8px;
}

.match-team-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.match-team-link:hover {
    opacity: 0.88;
}

.match-team-logo-link {
    cursor: pointer;
}

.match-team-logo-link:hover .img img {
    transform: scale(1.04);
}

.match-profile-details .team-item .img img {
    transition: transform 0.2s ease;
}

.match-fifa-ranking-block {
    margin-top: 0.5rem;
}

.match-fifa-ranking-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #303651;
    background: rgba(29, 34, 51, 0.55);
}

html.light:not(.dark) .match-fifa-ranking-card {
    border-color: #e3e5f0;
    background: #f8f9fc;
}

.match-fifa-ranking-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.match-fifa-ranking-team-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.match-fifa-ranking-team-link:hover {
    opacity: 0.88;
}

.match-fifa-ranking-team-link:hover .match-fifa-ranking-name {
    color: #39dbbf;
}

html.light:not(.dark) .match-fifa-ranking-team-link:hover .match-fifa-ranking-name {
    color: #16ae94;
}

.match-fifa-ranking-side img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    margin-bottom: 0.45rem;
}

.match-fifa-ranking-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

html.light:not(.dark) .match-fifa-ranking-name {
    color: #0e1019;
}

.match-fifa-ranking-vs {
    font-size: 0.75rem;
    font-weight: 800;
    color: #707488;
    letter-spacing: 0.08em;
}

.match-fifa-ranking-note {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    color: #bfc3d4;
    text-align: center;
}

html.light:not(.dark) .match-fifa-ranking-note {
    color: #707488;
}

.match-fifa-ranking-link {
    display: inline-block;
    margin-top: 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #39dbbf;
    text-decoration: none;
}

.match-fifa-ranking-link:hover {
    opacity: 0.85;
    color: #39dbbf;
}

html.light:not(.dark) .match-fifa-ranking-link {
    color: #16ae94;
}

html.light:not(.dark) .match-fifa-ranking-link:hover {
    color: #16ae94;
}

@media (max-width: 767px) {
    .match-fifa-ranking-card {
        padding: 0.85rem 0.65rem;
        gap: 0.5rem;
    }

    .match-fifa-ranking-side img {
        width: 36px;
        height: 36px;
    }

    .match-fifa-ranking-name {
        font-size: 0.8rem;
    }
}
