.bpfm {
    width: 100%;
    direction: rtl;
    font-family: 'YekanBakh', Tahoma, sans-serif;
    margin: 36px 0 46px;
}

.bpfm-empty {
    direction: rtl;
    font-family: 'YekanBakh', Tahoma, sans-serif;
    padding: 14px 16px;
    border: 1px dashed rgba(255,255,255,.18);
    border-radius: 10px;
    color: #b9c1c6;
    background: #202528;
}

.bpfm__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.bpfm__title {
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.4;
    font-weight: 700;
}

.bpfm__all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #9ea7ad;
    text-decoration: none;
    font-size: 14px;
    transition: color .2s ease;
}

.bpfm__all:hover,
.bpfm__all:focus-visible { color: #81c144; }

.bpfm__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.bpfm-card {
    min-width: 0;
    background: #202528;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.bpfm-card:hover {
    transform: translateY(-3px);
    border-color: rgba(129,193,68,.62);
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.bpfm-card__topline {
    min-height: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px dashed rgba(255,255,255,.10);
}

.bpfm-card__league {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #a5adb2;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
}

.bpfm-card__sport {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    color: #d9dde0;
}

.bpfm-card__sport svg { display: block; }

.bpfm-card__flag {
    flex: 0 0 auto;
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.09);
}

.bpfm-card__league-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bpfm-card__live {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 6px;
    background: #81c144;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset;
}

.bpfm-card__teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.bpfm-team { min-width: 0; }

.bpfm-team__logo {
    width: 58px;
    height: 58px;
    margin: 0 auto 9px;
    display: grid;
    place-items: center;
}

.bpfm-team__logo img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.bpfm-team__fallback {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #1D4279;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,.12);
}

.bpfm-team__name {
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bpfm-card__vs {
    color: #778187;
    font-size: 11px;
    font-weight: 700;
}

.bpfm-card__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 18px 0 14px;
    color: #a6afb4;
    font-size: 12px;
}

.bpfm-card__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #81c144;
}

.bpfm-card__cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
    background: #1D4279;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    transition: background-color .2s ease, transform .2s ease;
}

.bpfm-card__cta:hover,
.bpfm-card__cta:focus-visible { background: #81c144; }

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

@media (max-width: 767px) {
    .bpfm { margin: 28px 0 36px; }
    .bpfm__title { font-size: 23px; }
    .bpfm__all { font-size: 12px; }
    .bpfm__scroller {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .bpfm__scroller::-webkit-scrollbar { display: none; }
    .bpfm__grid { display: flex; gap: 12px; }
    .bpfm-card { flex: 0 0 82%; max-width: 330px; }
}

/* v0.4.0 — result/status additions */
.bpfm-card__finished {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(255,255,255,.10);
    color: #d4d9dc;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

.bpfm-card__score {
    display: inline-block;
    min-width: 48px;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    direction: ltr;
}


/* v0.5.0 — real slider + unmistakable sport icon */
.bpfm__slider { position: relative; }
.bpfm__scroller { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-behavior: smooth; scroll-snap-type: x proximity; }
.bpfm__scroller::-webkit-scrollbar { display:none; }
.bpfm__grid { display:flex; gap:16px; grid-template-columns:none; }
.bpfm-card { flex: 0 0 calc((100% - 48px)/4); scroll-snap-align:start; }
.bpfm__nav { position:absolute; top:50%; transform:translateY(-50%); z-index:5; width:38px; height:38px; border:0; border-radius:50%; background:rgba(10,12,13,.86); color:#fff; font-size:28px; line-height:1; cursor:pointer; display:grid; place-items:center; box-shadow:0 4px 16px rgba(0,0,0,.25); }
.bpfm__nav:hover { background:#81c144; }
.bpfm__nav--prev { right:-18px; }
.bpfm__nav--next { left:-18px; }
.bpfm-card__sport-symbol { font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif; font-size:17px; line-height:1; display:inline-block; }
@media (max-width:1100px){ .bpfm-card { flex-basis:calc((100% - 16px)/2); } }
@media (max-width:767px){ .bpfm-card { flex:0 0 82%; max-width:330px; } .bpfm__nav{display:none;} }

/* v0.6.0 — peek slider, visual score order, stable SVG sport icon */
.bpfm__slider {
    position: relative;
    overflow: visible;
}

.bpfm__scroller {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
}

.bpfm__scroller::-webkit-scrollbar { display: none; }

.bpfm__grid {
    display: flex;
    gap: 16px;
    width: max-content;
    min-width: 100%;
}

/* حدود 4.5 کارت روی دسکتاپ تا بخشی از کارت بعدی دیده شود */
.bpfm-card {
    flex: 0 0 21%;
    width: 21%;
    min-width: 250px;
    scroll-snap-align: start;
}

/* فلش‌های نسخه قبلی دیگر استفاده نمی‌شوند */
.bpfm__nav { display: none !important; }

.bpfm-card__sport-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #d9dde0;
    flex: 0 0 auto;
}

.bpfm-card__sport-symbol svg {
    display: block;
    width: 18px;
    height: 18px;
}

.bpfm-card__score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    direction: ltr !important;
    unicode-bidi: isolate;
    white-space: nowrap;
}

.bpfm-score-away,
.bpfm-score-home,
.bpfm-score-sep {
    display: inline-block;
    direction: ltr;
    unicode-bidi: isolate;
}

.bpfm-card__time {
    white-space: nowrap;
}

.bpfm-card.is-live .bpfm-card__time {
    color: #81c144;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .bpfm-card {
        flex-basis: 43%;
        width: 43%;
        min-width: 280px;
    }
}

@media (max-width: 767px) {
    .bpfm-card {
        flex: 0 0 82%;
        width: 82%;
        max-width: 330px;
        min-width: 270px;
    }
}


/* v0.6.1 — stable 4.5-card peek slider + desktop mouse drag */
.bpfm__slider {
    position: relative;
    overflow: hidden;
}

.bpfm__scroller {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: auto;
    scroll-snap-type: x proximity;
    cursor: grab;
    user-select: none;
    direction: rtl;
    overscroll-behavior-inline: contain;
}

.bpfm__scroller::-webkit-scrollbar { display: none; }
.bpfm__scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.bpfm__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
    min-width: 100%;
    direction: rtl;
}

/* 4 کارت کامل + نصف کارت پنجم روی دسکتاپ */
.bpfm-card {
    flex: 0 0 calc((100% - 64px) / 4.5);
    width: auto;
    min-width: 0;
    scroll-snap-align: start;
}

.bpfm__nav { display: none !important; }

.bpfm-card__sport-symbol,
.bpfm-card__sport {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.bpfm-card__sport-symbol img {
    display: block;
    width: 18px;
    height: 18px;
    max-width: none;
    object-fit: contain;
}

@media (max-width: 1100px) {
    /* حدود 2.5 کارت روی تبلت */
    .bpfm-card {
        flex-basis: calc((100% - 24px) / 2.5);
        min-width: 0;
    }
}

@media (max-width: 767px) {
    /* یک کارت کامل + بخشی از کارت بعدی روی موبایل */
    .bpfm__grid { gap: 12px; }
    .bpfm-card {
        flex: 0 0 82%;
        width: auto;
        min-width: 0;
        max-width: none;
    }
}

/* ========================================
   v0.6.2 — inverse drag + two-sided peek + full team names
   ======================================== */

/*
 * دسکتاپ: نیم کارت از هر دو سمت + چهار کارت کامل در میانه.
 * عرض هر کارت حدود یک پنجم viewport اسلایدر است و track نیم‌گام
 * به راست جابه‌جا می‌شود تا هر دو لبه، کارت نیمه نشان بدهند.
 */
@media (min-width: 1101px) {
    .bpfm__slider {
        overflow: hidden;
    }

    .bpfm__scroller {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        cursor: grab;
    }

    .bpfm__scroller.is-dragging {
        cursor: grabbing;
        scroll-snap-type: none;
    }

    .bpfm__grid {
        gap: 16px;
        width: 100%;
        min-width: 100%;
        transform: translateX(calc(((100% - 80px) / 5 + 16px) / 2));
        will-change: transform;
    }

    .bpfm-card {
        flex: 0 0 calc((100% - 80px) / 5);
        width: auto;
        min-width: 0;
        scroll-snap-align: start;
    }
}

/* نام تیم هرگز با ellipsis بریده نشود؛ JS در صورت نیاز فونت را کوچک می‌کند. */
.bpfm-team__name {
    width: 100%;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    font-size: 14px;
}

/* آیکون نوع ورزش واضح‌تر و کمی بزرگ‌تر */
.bpfm-card__sport-symbol img,
.bpfm-card__sport img {
    display: block;
    width: 21px !important;
    height: 21px !important;
    max-width: none !important;
    object-fit: contain;
}


/* ========================================
   v0.6.3 — initial full first card + post-drag two-sided peek + hover clearance
   ======================================== */

@media (min-width: 1101px) {
    /*
     * Initial load:
     * first card on the right stays fully visible.
     * After the user actually moves the slider, JS adds .has-peek and
     * we restore the two-sided half-card cue.
     */
    .bpfm__grid {
        transform: none;
        transition: transform .16s ease;
    }

    .bpfm__scroller.has-peek .bpfm__grid {
        transform: translateX(calc(((100% - 80px) / 5 + 16px) / 2));
    }

    /*
     * Cards lift 3px on hover. Give the scroller enough internal headroom
     * so the top border/shadow never gets clipped by the slider container.
     */
    .bpfm__scroller {
        padding-top: 6px;
        margin-top: -6px;
    }
}

/* ========================================
   v0.6.4 — stable RTL drag, full first card, hover-safe spacing
   ======================================== */

/* فضای امن داخلی برای کل سکشن تا هاور کارت‌ها به سکشن بالا نچسبد. */
.bpfm {
    box-sizing: border-box;
    padding: 12px 20px 20px;
}

.bpfm__slider {
    position: relative;
    overflow: hidden;
    padding-top: 2px;
}

/*
 * هیچ transform روی track استفاده نمی‌شود؛ transform نسخه‌های قبل باعث می‌شد
 * محدوده واقعی scroll با چیزی که کاربر می‌دید یکی نباشد و برگشت به ابتدای اسلایدر گیر کند.
 */
.bpfm__grid,
.bpfm__scroller.has-peek .bpfm__grid {
    transform: none !important;
    transition: none !important;
}

.bpfm__scroller {
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    padding-top: 10px !important;
    padding-bottom: 10px;
    margin-top: 0 !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    cursor: grab;
    user-select: none;
    direction: rtl;
    overscroll-behavior-inline: contain;
}

.bpfm__scroller::-webkit-scrollbar { display: none; }
.bpfm__scroller.is-dragging { cursor: grabbing; }

@media (min-width: 1101px) {
    .bpfm__grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
        width: 100%;
        min-width: 100%;
        direction: rtl;
    }

    /* لود اولیه: کارت اول سمت راست 100٪ کامل؛ سمت چپ حدود نیم کارت بعدی دیده می‌شود. */
    .bpfm-card {
        flex: 0 0 calc((100% - 64px) / 4.5);
        width: auto;
        min-width: 0;
        scroll-snap-align: none;
    }
}

@media (max-width: 1100px) {
    .bpfm { padding-inline: 14px; }
}

@media (max-width: 767px) {
    .bpfm { padding: 8px 10px 14px; }
    .bpfm__scroller { padding-top: 8px !important; }
}

/* ========================================
   v0.6.5 — larger cards, full league names, stable sport icons, right-edge breathing room
   ======================================== */

/* کمی فاصله واقعی از لبه‌های سکشن؛ کارت اول در شروع کاملاً دیده می‌شود. */
.bpfm__scroller {
    padding-inline: 14px !important;
    box-sizing: border-box;
}

/* نام لیگ با سه‌نقطه بریده نشود؛ JS در صورت نیاز فقط فونت را کمی کوچک می‌کند. */
.bpfm-card__league {
    overflow: visible;
}

.bpfm-card__league-name {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    line-height: 1.3;
}

/* آیکون‌های ورزش همیشه از فایل SVG محلی پلاگین می‌آیند، نه Emoji/Font سیستم. */
.bpfm-card__sport-symbol,
.bpfm-card__sport {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.bpfm-card__sport-symbol img,
.bpfm-card__sport img {
    display: block;
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    object-fit: contain;
}

@media (min-width: 1101px) {
    /* کارت‌ها کمی بزرگ‌تر از 6.4؛ حدود 4.25 کارت در viewport دیده می‌شود. */
    .bpfm-card {
        flex: 0 0 calc((100% - 52px) / 4.25);
    }
}

@media (max-width: 1100px) and (min-width: 768px) {
    .bpfm__scroller { padding-inline: 12px !important; }
}

@media (max-width: 767px) {
    .bpfm__scroller { padding-inline: 10px !important; }
}


/* ========================================
   v0.6.6 — stable sport icon system
   Local versioned SVGs; no Emoji / Font Awesome / theme dependency.
   ======================================== */
.bpfm-card__sport,
.bpfm-card__sport-symbol {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    flex: 0 0 22px !important;
    line-height: 1 !important;
    overflow: visible !important;
}
.bpfm-card__sport-icon {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    object-fit: contain !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* ========================================
   v0.6.7 — BetPro sport glyph system
   Same mechanism as main BetPro UI: a semantic class + ::before glyph.
   No <img>, no Emoji, no theme icon font dependency.
   ======================================== */
.bpfm .bpfm-card__sport,
.bpfm .bpfm-card__sport-symbol,
.bpfm .bpfm-sport-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    flex: 0 0 22px !important;
    line-height: 1 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}

/* Kill any legacy image icon if an old cached DOM/CSS combination appears. */
.bpfm .bpfm-card__sport-icon,
.bpfm .bpfm-card__sport-symbol > img {
    display: none !important;
}

.bpfm .bpfm-sport-icon::before {
    content: "" !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    background-color: #f5f7fa !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
}

.bpfm .bpfm-sport-icon--soccer::before {
    -webkit-mask-image: url('../icons/sport-glyphs/soccer.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/soccer.svg?v=067') !important;
}
.bpfm .bpfm-sport-icon--basketball::before {
    -webkit-mask-image: url('../icons/sport-glyphs/basketball.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/basketball.svg?v=067') !important;
}
.bpfm .bpfm-sport-icon--volleyball::before {
    -webkit-mask-image: url('../icons/sport-glyphs/volleyball.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/volleyball.svg?v=067') !important;
}
.bpfm .bpfm-sport-icon--tennis::before {
    -webkit-mask-image: url('../icons/sport-glyphs/tennis.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/tennis.svg?v=067') !important;
}
.bpfm .bpfm-sport-icon--baseball::before {
    -webkit-mask-image: url('../icons/sport-glyphs/baseball.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/baseball.svg?v=067') !important;
}
.bpfm .bpfm-sport-icon--hockey::before {
    -webkit-mask-image: url('../icons/sport-glyphs/hockey.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/hockey.svg?v=067') !important;
}
.bpfm .bpfm-sport-icon--handball::before {
    -webkit-mask-image: url('../icons/sport-glyphs/handball.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/handball.svg?v=067') !important;
}
.bpfm .bpfm-sport-icon--rugby::before {
    -webkit-mask-image: url('../icons/sport-glyphs/rugby.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/rugby.svg?v=067') !important;
}
.bpfm .bpfm-sport-icon--mma::before {
    -webkit-mask-image: url('../icons/sport-glyphs/mma.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/mma.svg?v=067') !important;
}
.bpfm .bpfm-sport-icon--american-football::before {
    -webkit-mask-image: url('../icons/sport-glyphs/american-football.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/american-football.svg?v=067') !important;
}
.bpfm .bpfm-sport-icon--boxing::before {
    -webkit-mask-image: url('../icons/sport-glyphs/boxing.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/boxing.svg?v=067') !important;
}
.bpfm .bpfm-sport-icon--cricket::before {
    -webkit-mask-image: url('../icons/sport-glyphs/cricket.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/cricket.svg?v=067') !important;
}
.bpfm .bpfm-sport-icon--table-tennis::before {
    -webkit-mask-image: url('../icons/sport-glyphs/table-tennis.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/table-tennis.svg?v=067') !important;
}
.bpfm .bpfm-sport-icon--badminton::before {
    -webkit-mask-image: url('../icons/sport-glyphs/badminton.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/badminton.svg?v=067') !important;
}
.bpfm .bpfm-sport-icon--golf::before {
    -webkit-mask-image: url('../icons/sport-glyphs/golf.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/golf.svg?v=067') !important;
}
.bpfm .bpfm-sport-icon--motorsport::before {
    -webkit-mask-image: url('../icons/sport-glyphs/motorsport.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/motorsport.svg?v=067') !important;
}
.bpfm .bpfm-sport-icon--cycling::before {
    -webkit-mask-image: url('../icons/sport-glyphs/cycling.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/cycling.svg?v=067') !important;
}
.bpfm .bpfm-sport-icon--snooker::before {
    -webkit-mask-image: url('../icons/sport-glyphs/snooker.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/snooker.svg?v=067') !important;
}
.bpfm .bpfm-sport-icon--water-polo::before {
    -webkit-mask-image: url('../icons/sport-glyphs/water-polo.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/water-polo.svg?v=067') !important;
}
.bpfm .bpfm-sport-icon--generic::before {
    -webkit-mask-image: url('../icons/sport-glyphs/generic.svg?v=067') !important;
    mask-image: url('../icons/sport-glyphs/generic.svg?v=067') !important;
}

/* ========================================
   v0.6.8 — endpoint behavior only
   Slider visuals unchanged; JS now keeps the final left card fully visible at the true end.
   ======================================== */


/* v0.7.1 — disrupted fixture states (Iran and other leagues) */
.bpfm-card__postponed,
.bpfm-card__suspended,
.bpfm-card__cancelled {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

.bpfm-card__postponed {
    background: #d89b27;
    color: #fff;
}

.bpfm-card__suspended {
    background: #c96a2d;
    color: #fff;
}

.bpfm-card__cancelled {
    background: rgba(255,255,255,.10);
    color: #d4d9dc;
}


/* ========================================
   v0.7.3 — equal CTA baseline + status-priority polish
   ======================================== */

/*
 * All cards in the slider share the tallest row height. Turning each card into
 * a vertical flex layout lets the CTA sit on the same baseline even when a
 * league/team/status label takes extra lines.
 */
.bpfm-card {
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box;
}

.bpfm-card__cta {
    margin-top: auto !important;
    flex: 0 0 auto;
}

/* Keep metadata from collapsing inconsistently between normal and disrupted fixtures. */
.bpfm-card__meta {
    min-height: 36px;
    flex: 0 0 auto;
}

/* ========================================
   v0.9.0 — multi-sport score semantics
   ======================================== */
.bpfm .bpfm-sport-icon--australian-football::before {
    -webkit-mask-image: url('../icons/sport-glyphs/australian-football.svg?v=090') !important;
    mask-image: url('../icons/sport-glyphs/australian-football.svg?v=090') !important;
}

.bpfm-score-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.bpfm-card__score-unit {
    color: #8e999f;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.bpfm-card__event-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 24px;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(255,255,255,.07);
    color: #d9dfe2;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* ========================================
   v0.9.1 — mobile section header stays on one line
   Title on the right + "مشاهده همه مسابقات" on the left.
   Applies only to phone layouts.
   ======================================== */
@media (max-width: 767px) {
    .bpfm__header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: 100%;
        min-width: 0;
    }

    .bpfm__title {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0 !important;
        white-space: nowrap !important;
        line-height: 1.35 !important;
        font-size: clamp(15px, 4.8vw, 20px) !important;
    }

    .bpfm__all {
        flex: 0 0 auto;
        min-width: max-content;
        white-space: nowrap !important;
        line-height: 1.25 !important;
        font-size: clamp(9px, 2.8vw, 11px) !important;
        gap: 4px !important;
    }
}

/* ========================================
   v0.9.2 — universal fallback message
   Shown in the exact section position whenever its data cannot be rendered.
   ======================================== */
.bpfm--fallback {
    width: 100%;
}

.bpfm-error-message {
    width: 100%;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px 24px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: #202528;
    color: #b9c1c6;
    font-family: 'YekanBakh', Tahoma, sans-serif;
    font-size: 14px;
    line-height: 1.9;
    text-align: center;
    direction: rtl;
}

@media (max-width: 767px) {
    .bpfm-error-message {
        min-height: 76px;
        padding: 16px 14px;
        font-size: 12px;
        line-height: 1.8;
    }
}
