/*
 * תיקוני כיווניות לאנגלית (LTR)
 * ------------------------------------------------------------------
 * מנגנון השפה כבר מציב <html dir="ltr" lang="en">, אבל css/style.css
 * מקבע `body { direction: rtl; text-align: right }` — ולכן באנגלית
 * הטקסט תורגם בעוד הפריסה נשארה מימין־לשמאל: שמות הקבוצות נצמדו לימין,
 * חיווי ה-LIVE הופיע בצד ההפוך, וסדר היחסים נקרא 2/X/1 במקום 1/X/2.
 *
 * כל כלל כאן גדור ב-html[dir="ltr"], ולכן האתר בעברית לא מושפע כלל.
 * הקובץ נטען רק כשהשפה הפעילה היא LTR.
 *
 * הערה: ברגע ש-body מקבל direction: ltr, כל פריסות ה-grid וה-flex
 * מתהפכות מעצמן — כולל grid-template-areas של כרטיסי המשחקים —
 * כי הן נשענות על ציר ה-inline. מה שנשאר כאן הוא רק מקומות שבהם
 * נכתב במפורש ערך פיזי (right/left) במקום לוגי.
 */

html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

/* ── כותרות וטקסט שיושר ידנית לימין ── */
html[dir="ltr"] .header-subsubnav-country-name-text,
html[dir="ltr"] .football-live-all-section .football-live-book-markets-head,
html[dir="ltr"] .basketball-live-all-section .basketball-live-book-head,
html[dir="ltr"] .basketball-live-all-section .basketball-live-book-title,
html[dir="ltr"] .basketball-live-all-section .basketball-live-book-match,
html[dir="ltr"] .basketball-live-all-section .basketball-live-book-markets-head,
html[dir="ltr"] .basketball-live-all-section .basketball-league-main-odds-label,
html[dir="ltr"] .index-main-standings-team,
html[dir="ltr"] .index-main-standings-team span,
html[dir="ltr"] .football-fixture-detail-label,
html[dir="ltr"] .football-fixture-detail-value,
html[dir="ltr"] .football-odds-panel--b365 .football-odds-bet-name {
  text-align: left;
}

/* ── טבלת דירוג: העמודות הוגדרו לפי מיקום פיזי ── */
html[dir="ltr"] .football-live-all-section .football-live-book-title,
html[dir="ltr"] .index-main-standings-table td:last-child,
html[dir="ltr"] .index-main-standings-table td:nth-child(2) {
  text-align: left;
}

/* ── דף משחק בודד: צד הבית/חוץ בסטטיסטיקות, הרכבים ואירועים ── */
html[dir="ltr"] .football-single-match-team--away,
html[dir="ltr"] .football-stats-side--home,
html[dir="ltr"] .football-lineups-side--home,
html[dir="ltr"] .football-events-side--home {
  text-align: left;
}
html[dir="ltr"] .football-stats-side,
html[dir="ltr"] .football-lineups-side,
html[dir="ltr"] .football-events-side {
  direction: ltr;
}

/* ── בלוק הקבוצות בשורת המשחק ──
   live-blocks.css מקבע direction: rtl על ‎.football-live-book-match‎
   ו-justify-content: flex-end על שורת הקבוצה. שניהם שורדים את תיקון
   ה-body, ולכן באנגלית הלוגו נשאר אחרי השם והשמות נצמדו פנימה.
   כאן הם מתהפכים כך שהשם והלוגו נצמדים לקצה הפתיחה — ימין בעברית,
   שמאל באנגלית. */
/* שרשרת הבוררים המלאה — live-blocks.css מגדיר את אלה בספציפיות
   של שלוש מחלקות, ולכן קידומת html[dir="ltr"] על מחלקה בודדת
   לא הייתה מספיקה כדי לנצח. */
html[dir="ltr"] .football-live-all-section .football-live-book-team-line .football-fixtures-team,
html[dir="ltr"] .football-live-all-section .football-live-book-team-line .football-fixtures-team-name-wrap,
html[dir="ltr"] .football-live-all-section .football-live-book-team-line .football-fixtures-team-name,
html[dir="ltr"] .basketball-live-all-section .basketball-live-book-team-line .basketball-live-team,
html[dir="ltr"] .basketball-live-all-section .basketball-live-book-team-line .basketball-live-team-name-wrap,
html[dir="ltr"] .football-live-all-section .football-live-book-head,
html[dir="ltr"] .football-live-all-section .football-live-book-title,
html[dir="ltr"] .football-live-all-section .football-live-all-country-head,
html[dir="ltr"] .football-live-all-section .football-live-book-match,
html[dir="ltr"] .basketball-live-all-section .basketball-live-book-match,
html[dir="ltr"] .basketball-live-all-section .basketball-live-book-team-line .basketball-live-team,
html[dir="ltr"] .basketball-live-all-section .basketball-live-book-team-line .basketball-live-team-name-wrap,
html[dir="ltr"] .football-live-all-section .football-live-book-markets-head,
html[dir="ltr"] .basketball-live-all-section .basketball-live-book-markets-head,
html[dir="ltr"] .basketball-live-all-section .basketball-live-book-head,
html[dir="ltr"] .basketball-live-all-section .basketball-league-main-odds-label {
  direction: ltr;
}

html[dir="ltr"] .football-live-all-section .football-live-book-team-line,
html[dir="ltr"] .basketball-live-all-section .basketball-live-book-team-line {
  justify-content: flex-start;
}

/* שם הקבוצה יושר ידנית לימין; באנגלית הוא נצמד לשמאל, ליד הלוגו. */
html[dir="ltr"] .football-live-all-section .football-live-book-team-line .football-fixtures-team-name,
html[dir="ltr"] .basketball-live-all-section .basketball-live-book-team-line .basketball-live-team-name {
  text-align: left;
}

/* ── מספרים חתומים ויחסים נשארים LTR בשתי השפות ──
   ‎(ראו הבעיה המוכרת של bidi על ‎-8.5 שמוצג כ-8.5-‎)‎ */
html[dir="ltr"] .football-live-tab-odds,
html[dir="ltr"] .football-live-book-score-box {
  direction: ltr;
}
