/**
 * BIHA Matches Banner - style "NHL base".
 *
 * Habillage clair facon NHL : fond blanc, colonnes de date grises
 * verticales, equipes empilees (domicile au-dessus, visiteur en
 * dessous) avec logo + abreviation + score aligne a droite.
 */

.biha-mb-style-nhl {
    background: #ffffff;
    color: #1a1a1a;
    height: 116px;
    border-top: 1px solid #e3e3e3;
    border-bottom: 1px solid #d0d0d0;
    font-family: Arial, Helvetica, sans-serif;
}

/* Titre de semaine. */
.biha-mb-style-nhl .biha-mb-week-title {
    height: 20px;
    line-height: 20px;
    font-size: 11px;
    color: #6a6a6a;
    background: #f4f4f4;
    border-bottom: 1px solid #e3e3e3;
}

/* Piste. */
.biha-mb-style-nhl .biha-mb-track {
    height: 96px;
}

/* Colonne de date verticale (grise). */
.biha-mb-style-nhl .biha-mb-day-label {
    width: 54px;
    height: 96px;
    background: #f0f0f0;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    color: #555;
}

.biha-mb-style-nhl .biha-mb-day-name {
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #8a8a8a;
}

.biha-mb-style-nhl .biha-mb-day-date {
    font-size: 14px;
    font-weight: bold;
    color: #2a2a2a;
}

.biha-mb-style-nhl .biha-mb-day-matches {
    gap: 0;
}

/* Carte : pas d'arrondi marque, separateurs fins facon NHL. */
.biha-mb-style-nhl .biha-mb-card {
    width: 168px;
    height: 96px;
    padding: 6px 12px;
    background: #ffffff;
    border-right: 1px solid #ececec;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.biha-mb-style-nhl .biha-mb-card:hover {
    background: #f7f9fc;
}

/* Badge de statut : en haut a gauche, discret. */
.biha-mb-style-nhl .biha-mb-badge {
    align-self: flex-start;
    margin-bottom: 4px;
    padding: 1px 5px;
    border-radius: 2px;
    font-size: 9px;
    letter-spacing: 0.5px;
}

.biha-mb-style-nhl .biha-mb-badge-live {
    background: #d32f2f;
    color: #fff;
    animation: biha-mb-nhl-pulse 1.5s ease-in-out infinite;
}

.biha-mb-style-nhl .biha-mb-badge-final {
    background: transparent;
    color: #4a4a4a;
    padding-left: 0;
    font-weight: bold;
}

.biha-mb-style-nhl .biha-mb-badge-upcoming {
    background: transparent;
    color: #0d47a1;
    padding-left: 0;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.2px;
}

@keyframes biha-mb-nhl-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}

/* Indicateur d'ouverture masque en style NHL. */
.biha-mb-style-nhl .biha-mb-open-indicator {
    display: none;
}

/* Categories : tag a contraste renforce, taille lisible. */
.biha-mb-style-nhl .biha-mb-categories {
    position: absolute;
    top: 4px;
    right: 14px;
    gap: 3px;
}

.biha-mb-style-nhl .biha-mb-category {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    background: #37474f;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* Lignes d'equipe : logo + abreviation + score a droite. */
.biha-mb-style-nhl .biha-mb-team {
    gap: 7px;
    height: 26px;
}

.biha-mb-style-nhl .biha-mb-logo {
    width: 22px;
    height: 22px;
    background: transparent;
}

/* En style NHL : abreviation (Shortname), pas le nom complet. */
.biha-mb-style-nhl .biha-mb-team-name {
    display: none;
}

.biha-mb-style-nhl .biha-mb-team-short {
    flex: 1;
    text-align: left;
    font-size: 14px;
    font-weight: bold;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.biha-mb-style-nhl .biha-mb-team-score {
    flex: 0 0 auto;
    min-width: 20px;
    text-align: right;
    font-size: 16px;
    font-weight: bold;
    color: #1a1a1a;
}

/* Equipe perdante legerement grisee facon NHL (score plus clair). */
.biha-mb-style-nhl .biha-mb-logo-fallback {
    background: #eceff1;
    color: #607d8b;
    border-radius: 3px;
    font-size: 8px;
}

.biha-mb-style-nhl .biha-mb-wdl-w { color: #2e7d32; }
.biha-mb-style-nhl .biha-mb-wdl-d { color: #f9a825; }
.biha-mb-style-nhl .biha-mb-wdl-l { color: #c62828; }

/* Fleches. */
.biha-mb-style-nhl .biha-mb-nav {
    background: #f4f4f4;
    color: #555;
    border: 1px solid #e0e0e0;
}

.biha-mb-style-nhl .biha-mb-nav:hover {
    background: #e9e9e9;
    color: #222;
}

/* Loading. */
.biha-mb-style-nhl .biha-mb-loading {
    background: rgba(255, 255, 255, 0.6);
}

/* Intersaison. */
.biha-mb-style-nhl.biha-mb-intersaison-banner {
    height: 116px;
}

.biha-mb-style-nhl .biha-mb-intersaison-label {
    font-size: 16px;
    color: #6a6a6a;
}

.biha-mb-style-nhl .biha-mb-empty {
    color: #8a8a8a;
}

/* Responsive. */
@media (max-width: 768px) {
    .biha-mb-style-nhl {
        height: 108px;
    }
    .biha-mb-style-nhl .biha-mb-track {
        height: 88px;
    }
    .biha-mb-style-nhl .biha-mb-day-label {
        width: 46px;
        height: 88px;
    }
    .biha-mb-style-nhl .biha-mb-card {
        width: 146px;
        height: 88px;
        padding: 5px 10px;
    }
    .biha-mb-style-nhl .biha-mb-team-short {
        font-size: 13px;
    }
    .biha-mb-style-nhl .biha-mb-team-score {
        font-size: 15px;
    }
    .biha-mb-style-nhl .biha-mb-nav {
        width: 26px;
        font-size: 22px;
    }
    .biha-mb-style-nhl .biha-mb-viewport {
        margin: 0 26px;
    }
}

@media (max-width: 480px) {
    .biha-mb-style-nhl .biha-mb-card {
        width: 130px;
    }
    .biha-mb-style-nhl .biha-mb-day-label {
        width: 40px;
    }
}

/* ---- Contexte playoff (style NHL) ------------------------------------ */
.biha-mb-style-nhl .biha-mb-card--playoff {
    background: #fffdf5;
    border-right-color: #f0e6c0;
}

.biha-mb-style-nhl .biha-mb-serie {
    font-size: 8px;
    font-weight: 800;
    color: #1a1a1a;
    background: #ffc107;
    border: 1px solid #e0a800;
    border-radius: 2px;
    padding: 2px 5px;
    margin-bottom: 3px;
    align-self: flex-start;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.biha-mb-style-nhl .biha-mb-serie-icon {
    font-size: 9px;
}

.biha-mb-style-nhl .biha-mb-team--qualified .biha-mb-team-short {
    color: #b8860b;
}

.biha-mb-style-nhl .biha-mb-qualified {
    color: #2e7d32;
    font-size: 11px;
}
