/* Pages publiques de suivi : d'abord le smartphone */

.live-card {
    color: inherit;
}

.live-line {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.live-line strong {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.live-big {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.live-wins {
    min-width: 1.5rem;
    text-align: right;
}

.outcome-win { color: var(--club-vert); }
.outcome-loss { color: var(--club-rouge); }

/* Plan de la salle : sur smartphone il garde une largeur lisible et se fait glisser */
.plan-card {
    background: #fff;
}

.plan-scroll {
    overflow-x: auto;
    padding: .25rem;
}

.room-plan {
    display: block;
    width: 100%;
    min-width: 36rem;
    height: auto;
}

.room-plan text {
    font-family: inherit;
}

.room-plan .plan-icon {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.plan-line {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    gap: .75rem;
    border-left: .35rem solid var(--color);
}

.plan-line.active {
    background: var(--tblr-primary-lt);
    color: inherit;
}

.plan-tables {
    flex: none;
    min-width: 3.5rem;
    padding: .15rem .35rem;
    border-radius: .35rem;
    background: var(--color);
    color: #fff;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

/* Une ligne par rencontre */
.live-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: .75rem;
    padding: .55rem .75rem .55rem 1rem;
}

.live-row-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: .25rem;
}

.live-row-teams,
.live-row-score {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    font-weight: 600;
}

.live-row-teams span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.live-row-score {
    text-align: right;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.live-row-meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-top: .25rem;
    font-size: .75rem;
    color: var(--tblr-secondary);
}

/* Compositions : une colonne par equipe, meme sur smartphone */
.card.lineups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lineup + .lineup {
    border-left: 1px solid var(--tblr-border-color);
}

.lineup-team {
    padding: .5rem .6rem;
    font-weight: 700;
    line-height: 1.25;
    border-bottom: 2px solid var(--club-rouge);
}

.lineup-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    padding: .4rem .6rem;
    color: inherit;
    line-height: 1.25;
    overflow-wrap: anywhere;
    border-bottom: 1px solid var(--tblr-border-color);
}

.lineup-player:last-child {
    border-bottom: 0;
}

a.lineup-player[href]:hover {
    background: var(--tblr-primary-lt);
    color: inherit;
    text-decoration: none;
}

/* Un match sur une seule ligne. Sur smartphone les sets s'ouvrent au toucher, sous la ligne. */
.public-game {
    display: grid;
    grid-template-columns: 1.4rem minmax(0, 1fr) 2.6rem minmax(0, 1fr) 2.2rem;
    align-items: center;
    column-gap: .4rem;
    padding: .65rem .6rem;
    font-size: .85rem;
}

.public-game.has-sets {
    cursor: pointer;
}

.public-number {
    font-weight: 700;
    color: var(--tblr-secondary);
}

.public-side {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.public-home {
    text-align: right;
}

.public-side.is-winner {
    font-weight: 800;
    color: var(--club-vert);
}

.public-result {
    text-align: center;
}

.public-running {
    grid-column: 5;
    grid-row: 1;
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.public-sets {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: .3rem;
    text-align: center;
    white-space: pre-wrap;
    font-variant-numeric: tabular-nums;
}

.public-game.is-open .public-sets {
    display: block;
}

@media (min-width: 768px) {
    .public-game {
        grid-template-columns: 2rem minmax(0, 1fr) 3.5rem minmax(0, 1fr) minmax(0, 15rem) 2.75rem;
        column-gap: .6rem;
        font-size: .95rem;
    }

    .public-game.has-sets {
        cursor: default;
    }

    .public-sets {
        display: block;
        grid-column: 5;
        grid-row: 1;
        margin: 0;
        text-align: left;
    }

    .public-running {
        grid-column: 6;
    }
}

/* « Mes matchs » : un match vu par le joueur */
.my-game {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem;
}

.my-game.is-next {
    background: var(--tblr-primary-lt);
}

.my-sets {
    font-variant-numeric: tabular-nums;
    white-space: pre-wrap;
}

.announce-versus .badge {
    background: #fff !important;
    color: #182433 !important;
}
