:root {
    --bar-h: 24px;
}

@media (min-width: 640px) {
    :root {
        --bar-h: 32px; /* Hauteur augmentée sur Desktop */
    }
}

.grid-stat {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
    row-gap: 0.35rem;
    align-items: center;
}

@media (min-width: 640px) {
    .grid-stat {
        grid-template-columns: 1fr minmax(120px, 160px) 1fr;
        row-gap: 0.5rem;
    }
}

/* Label pour Mobile (au-dessus) */
.feat-mobile {
    grid-column: span 2 / span 2;
    font-size: 11px;
    line-height: 1rem;
    color: #9ca3af;
    text-align: center;
    font-weight: 500;
    padding-bottom: 0.25rem;
}

/* Label pour Desktop (au centre) */
.feat-desktop {
    display: none;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #d1d5db;
    font-weight: 700;
    grid-column: 2;
    font-size: 13px;
}

@media (min-width: 640px) {
    .feat-mobile { display: none; }
    .feat-desktop { display: flex; }
    .row-span-2 { grid-row: span 2; }
}

.side-flex {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.side-flex.right {
    justify-content: flex-end;
}

/* Conteneur de la barre */
.bar-outer {
    position: relative;
    flex: 1;
    border-radius: 9999px;
    background-color: #374151;
    overflow: hidden;
    height: var(--bar-h);
    transition: height 0.2s ease;
}

/* Remplissage animé */
.bar-fill {
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    will-change: transform;
}

/* Texte à l'intérieur de la barre (Raw Value) */
.bar-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    z-index: 10;
}

/* Valeur en pourcentage à côté de la barre */
.val-pct {
    width: 2.5rem;
    font-size: 14px;
    font-weight: 700;
}

/* Logos des clubs */
.logo-stat {
    height: 1.25rem;
    width: 1.25rem;
    object-fit: contain;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .logo-stat {
        height: 1.5rem;
        width: 1.5rem;
    }
}

/* Remplacement des utilitaires Tailwind manquants */
.stat-row-wrap {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

@media (min-width: 640px) {
    .stat-row-wrap {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

.text-right { text-align: right; }
.text-left { text-align: left; }

/* Styles Skeleton */
.skeleton-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #4ade80;
}

.skeleton-bar {
    background-color: #374151;
    height: calc(var(--bar-h) + 1.25rem);
    border-radius: 0.5rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}