/* WRAPPER ESTERNO (per margine in pagina) */
.gestennis-latest-wrapper {
    margin-top: 1.5rem;
}

/* BOX SCURO CON OMBRA */
.gestennis-latestmeets-wrapper {
    background: #0f172a;
    color: #f9fafb;
    padding: 1.4rem 1.6rem 1.9rem;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.35);
}

/* HEADER */
.latestmeets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.1rem;
}

.latestmeets-label {
    display: inline-block;
    background-color: rgba(148, 163, 184, 0.3);
    color: #e5e7eb;
    border-radius: 999px;
    padding: 3px 11px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.latestmeets-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

/* EMPTY STATE */
.latestmeets-empty {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* GRID CARD (3/2/1) */
.latestmeets-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

@media (max-width: 991px) {
    .latestmeets-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .latestmeets-grid {
        grid-template-columns: 1fr;
    }
}

/* CARD INCONTRO */
.latestmeets-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 14px;
    padding: 0.9rem 0.95rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

/* TOP: torneo + data/ora/campo */
.latestmeets-top {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.78rem;
}

.latestmeets-tournament {
    display: inline-block;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.06);
}

/* Colori torneo diversi */
.latestmeets-tournament-1 { background: #0ea5e9; color: #0f172a; }
.latestmeets-tournament-2 { background: #22c55e; color: #022c22; }
.latestmeets-tournament-3 { background: #6366f1; color: #e5e7eb; }
.latestmeets-tournament-4 { background: #f97316; color: #111827; }

.latestmeets-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    opacity: 0.92;
}

.latestmeets-date {
    font-weight: 600;
}

.latestmeets-time,
.latestmeets-court {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* PLAYERS ROW */
.latestmeets-players-row {
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

/* Singolo player */
.latestmeets-player {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

/* Avatar tondo */
.latestmeets-avatar-wrap {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    overflow: hidden;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
}

.latestmeets-avatar-img {
    width: 120%;
    height: 120%;
    object-fit: cover;
    object-position: top;
}

.latestmeets-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    background: #1f2937;
    color: #e5e7eb;
    text-transform: uppercase;
}

/* Testo player */
.latestmeets-player-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.latestmeets-player-name-row {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    min-width: 0;
}

.latestmeets-player-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latestmeets-player-meta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    opacity: 0.9;
}

.latestmeets-player-club {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ranking pill */
.latestmeets-ranking {
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
}

/* Colori ranking */
.rank-nc {
    background: #e5e7eb;
    color: #111827;
}

.rank-4 {
    background: #bfdbfe;
    color: #1e3a8a;
}

.rank-3 {
    background: #bbf7d0;
    color: #166534;
}

.rank-2 {
    background: #fed7aa;
    color: #9a3412;
}

.rank-1 {
    background: #fee2e2;
    color: #b91c1c;
}

/* Trophy badge */
.latestmeets-trophy-badge {
    font-size: 0.95rem;
}

/* VS */
.latestmeets-vs {
    flex: 0 0 auto;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.8;
}

/* FOOTER: stato + score */
.latestmeets-footer {
    margin-top: 0.45rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.latestmeets-status {
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}

/* Riutilizzo colori stato */
.match-status-scheduled {
    background: #0ea5e9;
    color: #ffff;
}

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

.match-status-completed {
    background: #06b345;
    color: #ffffff;
}

.latestmeets-score {
    font-weight: 800;
    font-size: 0.95rem;
}

/* CTA sotto le card */
.latest-meets-cta-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.latest-meets-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    background-color: #f9fafb;
    color: #0f172a;
    transition: all 0.18s ease;
    border: 2px solid transparent;
}

/* hover SOLO per CTA neutri */
.latest-meets-cta-btn:not(.latest-meets-cta-btn--tennis):not(.latest-meets-cta-btn--padel):hover {
    background-color: #0f172a;
    color: #f9fafb;
    border-color: #0f172a;
}

/* Mobile padding tweak */
@media (max-width: 575px) {
    .gestennis-latest-wrapper {
        padding: 1.1rem 1rem 1.6rem;
    }
}

/* === CTA discipline colors (statici) === */
.latest-meets-cta-btn--tennis {
    background-color: #facc15;
    color: #262626;
}

.latest-meets-cta-btn--padel {
    background-color: #3b82f6;
    color: #ffffff;
}

/* hover disciplina: stesso colore, solo feedback */
.latest-meets-cta-btn--tennis:hover,
.latest-meets-cta-btn--padel:hover {
    filter: brightness(0.92);
}




.gestennis-latest-wrapper {
    margin-top: 1.5rem;
}

/* 3 card su desktop, 1 su mobile */
.schedule-list-grid-latest {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

@media (max-width: 991px) {
    .schedule-list-grid-latest {
        grid-template-columns: 1fr;
    }
}

/* CTA sotto le card */
.latest-meets-cta-wrapper {
    text-align: center;
    margin-top: 1.6rem;
}

.latest-meets-cta-btn {
    display: inline-block;
    padding: 10px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    background-color: #0f172a;
    color: #ffffff;
    transition: all 0.18s ease;
    border: 2px solid #0f172a;
}

.latest-meets-cta-btn:hover {
    background-color: transparent;
    color: #0f172a;
}


.schedule-player-photo--double {
    object-fit: cover;
    object-position: center;
}
