*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* משתנים גלובליים – הדר, תפריט צד, פוטר; ריווח סימטרי לכל הגדלים */
:root {
  --header-top-height: 30px;
  --header-top-border: 1px;
  --header-main-height: 68px;
  --header-sidebar-top: calc(var(--header-top-height) + var(--header-top-border) + var(--header-main-height));
  /* offset ל-sticky (כותרות משחק וכו') — דסקטופ: הדר; מובייל: מעודכן ב-header.js */
  --header-sticky-top: var(--header-sidebar-top);
  --header-sidebar-width: 240px;
  --header-sidebar-width-collapsed: 56px;
  --footer-height: 120px;
  /* ריווח אופקי – שווה בכל האתר */
  --space-x: 24px;
  --space-x-sm: 16px;
  --space-x-xs: 12px;
  /* ריווח אנכי – תוכן מרכזי */
  --space-y: 32px;
  --space-y-sm: 24px;
  --space-y-xs: 20px;
  --accent-sport: #f5c518;
  --accent-poker: #c2410c;
  --accent-casino: #1d4ed8;
  /* ריווח אנכי לתוכן מרכזי – דסקטופ; במובייל נדרס ב־media queries */
  --hub-container-pad-top: calc(var(--space-y-sm) + 6px);
  --hub-container-pad-bottom: var(--space-y);
  /* דפי hub (מובייל): הזחה אופקית ל־full-bleed – מוגדרת במדיה queries */
}

html {
  width: 100%;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  /* רקע על html – מונע פס לבן בגלילה/overscroll בנייד כש־body לא מכסה את כל הקנבס */
  background-color: #0a0a0a;
  background-image: linear-gradient(135deg, #000000, #2a2a2a);
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: #0a0a0a;
  background-image: linear-gradient(135deg, #000000, #2a2a2a);
  font-family: 'Heebo', 'Segoe UI', Arial, sans-serif;
  color: #ffffff;
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

/* מובייל: גלילה חלקה של התוכן המרכזי – המסמך גולל, לא אלמנט ביניים */
@media (max-width: 768px) {
  /*
   * גלילה מיותרת – מקורות אפשריים:
   * 1) body כ־flex: הדר position:fixed עדיין כילד flex; בחלק מהדפדפנים נוצר גובה/מרווח כפול.
   * 2) min-height:100vh על body: ב־iOS ‎100vh‎ גדול מ־ה viewport הגלוי (סרגל כתובות) → תמיד "עוד קצת" גלילה.
   * פתרון: במובייל body ו־.page-middle כ־block; בלי min-height מינימום מסך.
   */
  html {
    min-height: 0;
    height: auto;
    overflow-x: hidden;
    /* ב-iOS Private: min-height:100dvh יוצר גלילה/רווח אפור מתחת ל-fixed bottom */
  }
  body {
    display: block;
    overflow-x: hidden;
    min-height: 0;
    /* דורס את min-height:100vh של דסקטופ */
  }
  .page-middle {
    display: block;
    min-height: 0;
    overflow: visible;
    padding-top: var(--header-mobile-total);
  }
  .main {
    display: block;
    min-height: 0;
    overflow: visible;
    touch-action: pan-y;
    /* כמו דסקטופ – שקיפות כאן חשפה רקע לבן בחלק מהדפדפנים */
    background: linear-gradient(135deg, #000000, #2a2a2a);
  }
}

/*
 * מובייל: בלי flex-grow – אחרת גובה body נמתח ויש גלילה ריקה.
 * דסקטופ: flex: 1 על .page-middle (במדיה min-width:769) לדחיפת פוטר כשהתוכן קצר.
 * חשוב: ברירת המחדל חייבת להיות 0 0 auto; לא לשים כאן flex:1 שידרוס את המובייל אחרי מדיה קודמת.
 */
.page-middle {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.main {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}

/* תוכן מרכזי – ריווח סימטרי */
.main .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--hub-container-pad-top) var(--space-x) var(--hub-container-pad-bottom);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

@media (max-width: 768px) {
  :root {
    --hub-container-pad-top: calc(var(--space-y-sm) + 4px);
    --hub-container-pad-bottom: var(--space-y-sm);
    --hub-fullbleed-inline: var(--space-x-sm);
  }
  /* אותו ריווח אנכי מתחת לתפריט בכל דפי האתר (ספורט / צ'אנס / האח הגדול) */
  .main .container {
    padding: var(--hub-container-pad-top) var(--space-x-sm) var(--hub-container-pad-bottom);
  }
}

@media (max-width: 360px) {
  :root {
    --hub-container-pad-top: calc(var(--space-y-xs) + 4px);
    --hub-container-pad-bottom: var(--space-y-xs);
    --hub-fullbleed-inline: var(--space-x-xs);
  }
  .main .container {
    padding: var(--hub-container-pad-top) var(--space-x-xs) var(--hub-container-pad-bottom);
  }
}

/* דסקטופ: תפריט צדדי בזרימה; הדר צף – ריווח לתוכן מתחת להדר העליון+מרכזי */
@media (min-width: 769px) {
  .page-middle {
    flex: 1 0 auto;
    flex-direction: row;
    align-items: stretch;
    min-height: calc(100vh - var(--header-sidebar-top) - var(--footer-height));
    overflow-x: hidden;
    padding-top: var(--header-sidebar-top);
  }

  .main {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
    /* רקע כמו body – מונע פס בצבע שונה כשהתפריט מורחב */
    background: linear-gradient(135deg, #000000, #2a2a2a);
  }

  /* דפי hub: יישור עליון אחיד (כמו צ'אנס) – ספורט והאח הגדול */
  body.page-hub-sport .page-middle,
  body.page-hub-chance .page-middle,
  body.page-hub-bigbrother .page-middle {
    align-items: flex-start;
  }
  body.page-hub-sport .main,
  body.page-hub-chance .main,
  body.page-hub-bigbrother .main {
    align-self: flex-start;
    min-height: 0;
  }
}

/* דסקטופ: שני עמודות – משחקים חיים בצד ימין, הטופס שלי בצד שמאל (RTL: סדר DOM = ימין→שמאל) */
.index-desktop-cols {
  display: flex;
  flex-direction: column;
  gap: var(--space-y-sm, 24px);
  width: 100%;
}
.index-col--live.index-col--live-multi {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .index-desktop-cols .index-col--live {
    order: 2;
  }
  .index-desktop-cols .index-col--form {
    order: 1;
  }
  .index-desktop-cols .index-home-side {
    display: contents;
  }
  .index-desktop-cols .index-my-form-block {
    order: 1;
  }
  .index-desktop-cols .index-main-standings-block {
    order: 3;
  }
  /* מובייל: בלוקים לכל הרוחב (ספורט/צ'אנס/אח הגדול ב־hub) */
  .index-desktop-cols.index-home-hub,
  body.page-hub-bigbrother .main .container > .index-home-hub--bigbrother {
    margin-inline: calc(-1 * var(--hub-fullbleed-inline, var(--space-x-sm)));
    width: calc(100% + 2 * var(--hub-fullbleed-inline, var(--space-x-sm)));
    max-width: none;
  }
  body.page-hub-bigbrother .index-home-hub--bigbrother > .index-col--live > .bb-home-block:first-child {
    border-radius: 0;
    border-inline-start: none;
  }
  .index-desktop-cols .index-col--live,
  .index-desktop-cols .index-col--form {
    width: 100%;
    max-width: none;
  }
  .index-desktop-cols .index-my-form-block,
  .index-desktop-cols .index-main-standings-block {
    width: 100%;
  }
  .index-desktop-cols .index-home-card {
    border-radius: 0;
    border-inline-start: none;
  }
}
.index-home-hub {
  --hub-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  --hub-card-border: rgba(255, 255, 255, 0.11);
  --hub-card-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
@media (min-width: 769px) {
  .index-desktop-cols {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-x, 24px);
  }
  .index-col--live {
    flex: 1 1 60%;
    min-width: 0;
  }
  .index-col--form {
    flex: 0 1 380px;
    min-width: 280px;
  }
  .index-col--form.index-col--form-full {
    flex: 1 1 100%;
    min-width: 0;
  }
}
.index-home-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.index-home-card {
  background: var(--hub-card-bg);
  border: 1px solid var(--hub-card-border);
  border-inline-start: 3px solid rgba(245, 197, 24, 0.45);
  border-radius: 14px;
  box-shadow: var(--hub-card-shadow);
}

/* דף הבית ספורט (משחקים חיים / טבלה): בלוקים לפי צבע סוג המשחק בקטגוריה */
body.page-hub-sport {
  --hub-accent: var(--accent-sport, #f5c518);
  --hub-accent-rgb: 245, 197, 24;
}
body.page-hub-sport .index-home-hub .index-home-card {
  background-image:
    linear-gradient(180deg, rgba(26, 32, 52, 0.55), rgba(12, 14, 24, 0.88));
  border: 1px solid rgba(100, 130, 200, 0.14);
  border-inline-start: 3px solid rgba(96, 165, 250, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}
body.page-hub-sport .index-home-hub .index-my-form-head.index-my-form-title-bar {
  background: linear-gradient(180deg, rgba(20, 24, 38, 0.96) 0%, rgba(8, 10, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
body.page-hub-sport .index-home-hub .index-my-form-title .index-my-form-balance-value {
  color: rgba(255, 255, 255, 0.92);
}
body.page-hub-sport .index-home-hub .index-my-form-empty-icon {
  color: rgba(147, 197, 253, 0.55);
}
body.page-hub-sport .index-home-hub .index-main-standings-head {
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.1)),
    linear-gradient(90deg, rgba(59, 130, 246, 0.14), rgba(30, 58, 138, 0.08));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.page-hub-bigbrother {
  --hub-accent: var(--accent-sport, #f5c518);
  --hub-accent-rgb: 245, 197, 24;
}

.index-main-standings-block {
  overflow: hidden;
}
.index-main-standings-head {
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.06) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.index-main-standings-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
}
.index-main-standings-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}
.index-main-standings-country-flag {
  width: 18px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}
.index-main-standings-league-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.index-main-standings-league-name {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
}
.index-main-standings-season {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}
.index-main-standings-table-wrap {
  padding: 0 10px 10px;
}
.index-main-standings-group-title {
  margin: 10px 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}
.index-main-standings-table-wrap:first-of-type .index-main-standings-group-title {
  margin-top: 8px;
}
.index-main-standings-table-wrap:last-child {
  padding-bottom: 12px;
}
.index-main-standings-table-scroll {
  overflow-x: hidden;
  overflow-y: hidden;
}
.index-main-standings-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  background: rgba(11, 14, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}
.index-main-standings-table th,
.index-main-standings-table td {
  padding: 6px 4px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.index-main-standings-table th {
  font-size: 0.64rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}
.index-main-standings-table td {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.92);
}
.index-main-standings-table th:first-child,
.index-main-standings-table td:first-child,
.index-main-standings-table th:last-child,
.index-main-standings-table td:last-child {
  width: 1%;
}
.index-main-standings-table th:nth-child(2),
.index-main-standings-table td:nth-child(2) {
  text-align: right;
}
.index-main-standings-table tbody tr:last-child td {
  border-bottom: none;
}
.index-main-standings-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}
.index-main-standings-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}
.index-main-standings-team {
  display: flex;
  direction: rtl;
  align-items: center;
  justify-content: flex-end;
  flex-direction: row;
  gap: 5px;
  min-width: 0;
  text-align: right;
  width: 100%;
}
.index-main-standings-team img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}
.index-main-standings-team span {
  flex: 1 1 auto;
  min-width: 0;
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.index-main-standings-goals {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.index-main-standings-points {
  font-weight: 800;
  color: var(--accent-sport, #f5c518);
  font-variant-numeric: tabular-nums;
}
.index-main-standings-row-reveal {
  animation: index-standings-row-reveal 220ms ease both;
}
@keyframes index-standings-row-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.index-main-standings-more-btn {
  width: 100%;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.index-main-standings-more-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.index-main-standings-more-btn-icon {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}
.index-main-standings-more-btn[data-more-open="1"] .index-main-standings-more-btn-icon {
  transform: rotate(225deg) translateY(1px);
}
.index-main-standings-more-btn-text {
  line-height: 1;
}
.index-my-form-block {
  padding: var(--space-y-sm, 24px) var(--space-x-sm, 16px);
  position: relative;
}
.index-my-form-head {
  margin-bottom: 12px;
}
.index-my-form-head.index-my-form-title-bar {
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.06) 100%);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.index-my-form-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.index-my-form-title .index-my-form-balance {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.index-my-form-title .index-my-form-balance-value {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}
.index-my-form-desc {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
  white-space: pre-line;
}
/* מצב ריק – הטופס שלי: SVG מרכזי, שלום אורח, הודעה עם גרדיאנט */
.index-my-form-empty-wrap {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}
.index-my-form-empty {
  text-align: center;
  max-width: 260px;
}
.index-my-form-empty-icon {
  margin: 0 auto 16px;
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.35);
}
.index-my-form-empty-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.index-my-form-empty-greeting {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}
.index-my-form-empty-msg {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}
/* ========== טופס הימור – עיצוב מחודש, ברור ומאורגן ========== */
.index-my-form-desc.index-my-form-content--has-bet {
  max-width: 100%; min-width: 0; overflow-x: hidden;
  box-sizing: border-box; white-space: normal;
  overflow-wrap: break-word; word-break: break-word;
  color: rgba(255,255,255,.9); line-height: 1.4;
}
.index-my-form-content--has-bet .index-my-form-slip {
  --s-fs-key: clamp(.58rem,.5rem + .3vw,.66rem);
  --s-fs-val: clamp(.68rem,.58rem + .4vw,.82rem);
  --s-fs-odds: clamp(.74rem,.64rem + .45vw,.92rem);
  --s-pad: clamp(7px,1.6vw,10px);
  max-width: 100%; box-sizing: border-box; position: relative; overflow: hidden;
  background: linear-gradient(145deg,rgba(25,30,40,.96),rgba(16,20,28,.98));
  border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
  padding: var(--s-pad); box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.index-my-form-content--has-bet .index-my-form-slip::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg,var(--accent-sport,#f5c518),rgba(245,197,24,.4)); opacity: .9;
}
/* === בלוק משחק בודד בטופס === */
.slip-bets { display: flex; flex-direction: column; gap: clamp(6px,1.4vw,9px); margin-bottom: 8px; }
.slip-fixture {
  border-radius: 8px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.08);
  padding: clamp(6px,1.4vw,8px); box-sizing: border-box; min-width: 0; max-width: 100%;
  transition: border-color .3s;
}
.slip-fixture--locked { border-color: rgba(255,90,90,.4); }
.slip--flash-new { animation: slipFlashNew 3s ease-out forwards; }
@keyframes slipFlashNew {
  0%   { background: rgba(245,197,24,.2); box-shadow: 0 0 0 2px rgba(245,197,24,.3); }
  100% { background: rgba(0,0,0,.22); box-shadow: none; }
}
/* תווית סוג המשחק בתוך כל שורת הימור (בין "בחירה" ל"יחס") */
.slip-row-val--game-type {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
  line-height: 1.25;
  white-space: nowrap;
}
.slip-row-val--game-type--football {
  color: inherit;
  background: transparent;
  border: none;
}
.slip-row-val--game-type--basketball {
  color: inherit;
  background: transparent;
  border: none;
}
/* טאבים למעבר בין כדורגל לכדורסל בטופס שלי (מופיע רק כשיש משני הסוגים) */
.slip-sports-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin: 0 0 clamp(6px,1.4vw,9px);
  padding: 3px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  box-sizing: border-box;
}
.slip-sports-tab {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: clamp(.62rem,.52rem + .35vw,.78rem); font-weight: 700;
  color: rgba(255,255,255,.65);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
  white-space: nowrap; line-height: 1.2;
}
.slip-sports-tab:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.04); }
.slip-sports-tab:focus-visible { outline: 2px solid rgba(245,197,24,.5); outline-offset: 2px; }
.slip-sports-tab.is-active {
  color: #ffffff;
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
}
.slip-sports-tab--football.is-active {
  background: linear-gradient(180deg, rgba(54,196,98,.22), rgba(54,196,98,.08));
  border-color: rgba(54,196,98,.5);
  color: #ddffe4;
}
.slip-sports-tab--basketball.is-active {
  background: linear-gradient(180deg, rgba(255,140,40,.22), rgba(255,140,40,.08));
  border-color: rgba(255,140,40,.55);
  color: #ffe7cf;
}
.slip-sports-tab-emoji { font-size: 1em; line-height: 1; }
.slip-sports-tab-name { letter-spacing: .02em; }
.slip-sports-tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  font-size: clamp(.5rem,.42rem + .28vw,.62rem); font-weight: 800;
  background: rgba(255,255,255,.14); color: #fff;
  font-variant-numeric: tabular-nums;
}
.slip-sports-tab--football.is-active .slip-sports-tab-count {
  background: rgba(54,196,98,.38); color: #ffffff;
}
.slip-sports-tab--basketball.is-active .slip-sports-tab-count {
  background: rgba(255,140,40,.42); color: #ffffff;
}
/* כותרת קבוצות */
.slip-fixture-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(3px,.8vw,5px) clamp(4px,1vw,6px);
  margin-bottom: clamp(4px,1vw,6px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.slip-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.slip-team { display: flex; align-items: center; gap: 4px; min-width: 0; }
.slip-team--home { justify-content: flex-start; text-align: start; }
.slip-team--away { justify-content: flex-end; text-align: end; }
.slip-team-logo { width: clamp(16px,3.8vw,22px); height: clamp(16px,3.8vw,22px); object-fit: contain; border-radius: 3px; flex-shrink: 0; }
.slip-team-logo--ph { background: rgba(255,255,255,.1); }
.slip-team-name {
  font-size: clamp(.6rem,.5rem + .4vw,.76rem); font-weight: 600;
  color: rgba(255,255,255,.92); line-height: 1.2;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow-wrap: anywhere; word-break: break-word;
}
.slip-vs { font-size: clamp(.52rem,.45rem + .3vw,.64rem); color: rgba(255,255,255,.35); flex-shrink: 0; font-weight: 700; letter-spacing: .04em; }
.slip-match-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  font-weight: 900;
  font-size: clamp(.72rem,.62rem + .38vw,.9rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  white-space: nowrap;
}
.slip-lock-badge {
  flex-shrink: 0; font-size: .6rem; font-weight: 700; color: #ff6b6b;
  background: rgba(255,80,80,.12); padding: 2px 6px; border-radius: 4px;
  border: 1px solid rgba(255,80,80,.25); white-space: nowrap; line-height: 1.3;
}
/* תצוגת דקת לייב בכותרת הטופס (ליד שמות הקבוצות) — נשאר לתאימות לאחור */
.slip-fixture-minute {
  display: inline-flex; align-items: center; gap: 4px;
  flex-shrink: 0; font-size: clamp(.56rem,.48rem + .28vw,.68rem);
  font-weight: 700; color: #ff6b6b;
  background: rgba(255,80,80,.1); padding: 2px 7px; border-radius: 999px;
  border: 1px solid rgba(255,80,80,.22);
  white-space: nowrap; line-height: 1.3;
  margin-inline-start: 4px;
}
.slip-fixture-minute-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #ff3838;
  box-shadow: 0 0 6px rgba(255,56,56,.8);
  animation: slipLiveMinutePulse 1.2s infinite;
  flex-shrink: 0;
}
@keyframes slipLiveMinutePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.85); }
}
/* שורת תמונת לייב (תוצאה + דקה) בשורה נפרדת מתחת לשמות הקבוצות */
.slip-fixture-snapshot {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 0 clamp(3px,.8vw,5px) clamp(4px,1vw,6px);
  padding: 2px 10px;
  font-size: clamp(.56rem,.48rem + .28vw,.68rem);
  font-weight: 700; color: #ff6b6b; line-height: 1.3;
  background: rgba(255,80,80,.07);
  border: 1px solid rgba(255,80,80,.18);
  border-radius: 999px;
  white-space: nowrap;
}
.slip-fixture-snapshot-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #ff3838;
  box-shadow: 0 0 6px rgba(255,56,56,.8);
  animation: slipLiveMinutePulse 1.2s infinite;
  flex-shrink: 0;
}
.slip-fixture-snapshot-text {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 0;
}
.slip-fixture-snapshot-score {
  font-weight: 800; color: #ffffff; letter-spacing: .03em;
}
.slip-fixture-snapshot-minute {
  font-weight: 700; color: #ff9a9a;
  overflow: visible; text-overflow: clip; max-width: none;
}
.slip-fixture-snapshot-sep {
  color: rgba(255,255,255,.35); font-weight: 700;
}
/* === שורות הימור === */
.slip-fixture-lines { display: flex; flex-direction: column; gap: 0; }
.slip-line {
  --slip-line-pad: clamp(5px,1.2vw,7px);
  display: flex; align-items: stretch; gap: clamp(6px,1.4vw,8px);
  padding: var(--slip-line-pad) clamp(3px,.8vw,5px); margin: 0;
  border-bottom: 1px solid rgba(255,255,255,.05); box-sizing: border-box;
  min-width: 0; max-width: 100%;
}
.slip-line:last-child { border-bottom: none; }
/* עמודת מידע */
.slip-line-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(2px,.6vw,4px);
}
/* שורת מפתח-ערך */
.slip-row {
  display: flex; align-items: baseline; gap: clamp(4px,1vw,6px);
  min-width: 0; max-width: 100%; font-size: var(--s-fs-val);
}
.slip-row-key {
  flex: 0 0 clamp(4.2em,12vw,5.5em);
  font-size: var(--s-fs-key); font-weight: 700;
  color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .03em;
  text-align: start; line-height: 1.35;
}
.slip-row-val {
  flex: 1; min-width: 0; color: rgba(255,255,255,.92); font-weight: 600;
  overflow-wrap: anywhere; word-break: break-word; line-height: 1.35;
}
.slip-pick-val--ltr {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.slip-row--market .slip-row-val { color: rgba(255,255,255,.95); }
.slip-row--pick .slip-row-val { color: rgba(255,255,255,.88); }
/* יחס */
.slip-row--odds { align-items: center; }
.slip-odds {
  color: var(--accent-sport,#f5c518); font-weight: 800; font-size: var(--s-fs-odds);
  white-space: nowrap; transition: color .3s; display: inline-block;
}
.index-my-form-odds--flash-up { animation: slipOddsFlashUp 2s ease-out; }
.index-my-form-odds--flash-down { animation: slipOddsFlashDown 2s ease-out; }
@keyframes slipOddsFlashUp {
  0%   { color: #4caf50; transform: scale(1.18); }
  40%  { color: #81c784; }
  100% { color: var(--accent-sport,#f5c518); transform: scale(1); }
}
@keyframes slipOddsFlashDown {
  0%   { color: #f44336; transform: scale(1.18); }
  40%  { color: #e57373; }
  100% { color: var(--accent-sport,#f5c518); transform: scale(1); }
}
/* ספק – ריבוע בצד שמאל */
.slip-bk-block {
  flex: 0 0 clamp(42px,10vw,54px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; text-align: center; align-self: stretch;
  padding: 2px 0;
}
.slip-bk-img {
  width: clamp(30px,7.5vw,40px); height: clamp(30px,7.5vw,40px);
  object-fit: contain; border-radius: 6px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  display: block;
}
.slip-bk-img--ph { background: rgba(255,255,255,.05); }
.slip-bk-name {
  font-size: clamp(.46rem,.4rem + .24vw,.56rem); font-weight: 600;
  color: rgba(255,255,255,.5); line-height: 1.15;
  width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* כפתור הסרה */
.slip-remove {
  flex: 0 0 20px; width: 20px; height: 20px;
  min-width: 44px; min-height: 44px;
  align-self: center;
  padding: 0; border: none; border-radius: 50%;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.8);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.slip-remove:hover { background: rgba(220,60,60,.8); color: #fff; }
.slip-remove svg { display: block; width: 10px; height: 10px; }
/* === סיכום + פעולות === */
.slip-summary {
  padding: clamp(6px,1.4vw,8px) 0 0; margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 4px;
}
.slip-summary-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: clamp(.72rem,.62rem + .35vw,.84rem);
}
.slip-summary-label { color: rgba(255,255,255,.55); font-weight: 500; }
.slip-summary-val { color: rgba(255,255,255,.92); font-weight: 600; }
.slip-summary-val--accent { color: var(--accent-sport,#f5c518); font-weight: 700; font-size: clamp(.78rem,.68rem + .4vw,.92rem); }
.slip-summary-input-wrap { display: inline-flex; align-items: center; gap: 5px; }
.slip-summary-input {
  /* font-size: 16px כדי למנוע auto-zoom ב-iOS/Safari כשנותנים focus לשדה קלט */
  width: 78px; padding: 3px 8px; font-size: 16px; line-height: 1.15; font-weight: 600;
  border: 1px solid rgba(255,255,255,.18); border-radius: 6px;
  background: rgba(255,255,255,.06); color: #fff;
  box-sizing: border-box; text-align: left; direction: ltr;
}
.slip-summary-input::placeholder { color: rgba(255,255,255,.3); }
.slip-summary-input:focus { outline: none; border-color: var(--accent-sport,#f5c518); background: rgba(255,255,255,.1); }
.slip-summary-input::-webkit-outer-spin-button,
.slip-summary-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.slip-summary-input { -moz-appearance: textfield; }
.slip-summary-currency { font-weight: 600; color: rgba(255,255,255,.8); font-size: .82rem; }
.slip-summary-row--highlight { padding: 3px 0; }
/* הודעת חסימה */
.slip-block-msg {
  font-size: .7rem; color: #ffc9c9; margin: 4px 0 2px; padding: 5px 8px;
  border-radius: 6px; background: rgba(200,60,60,.18); border: 1px solid rgba(255,130,130,.3);
  line-height: 1.35; text-align: center;
}
.slip-block-msg[hidden] { display: none; }
.slip-block-msg--warn { background: rgba(245,180,24,.12); border-color: rgba(245,197,24,.3); color: #ffe0a0; }
.slip-line-warning {
  margin-top: 4px; padding: 3px 6px; border-radius: 5px;
  background: rgba(200,60,60,.14); color: #ffc9c9;
  font-size: .66rem; line-height: 1.3;
}
.slip-accept-btn {
  display: inline-block; margin-inline-start: 4px;
  padding: 2px 8px; font-size: .68rem; font-weight: 700;
  background: var(--accent-sport,#f5c518); color: #1a1a1a;
  border: none; border-radius: 4px; cursor: pointer;
  transition: background .2s;
}
.slip-accept-btn:hover { background: #fad54d; }
/* כפתורים */
.slip-actions {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 6px; padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.slip-btn {
  padding: 8px 14px; font-size: .8rem; font-weight: 700;
  border-radius: 8px; cursor: pointer; border: none;
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
}
.slip-btn--submit {
  flex: 1; min-width: 110px;
  background: var(--accent-sport,#f5c518); color: #1a1a1a;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.slip-btn--submit:hover { background: #fad54d; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.slip-btn--submit:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.slip-btn--clear { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.slip-btn--clear:hover { background: rgba(255,255,255,.18); color: #fff; }
@media (max-width: 768px) {
  .index-home-side {
    gap: 10px;
  }
  .index-main-standings-head {
    padding: 10px 12px;
  }
  .index-main-standings-title {
    font-size: 0.9rem;
  }
  .index-main-standings-meta {
    font-size: 0.72rem;
    gap: 6px;
  }
  .index-main-standings-table-wrap {
    padding: 0 8px 10px;
  }
  .index-main-standings-group-title {
    font-size: 0.72rem;
  }
  .index-main-standings-table th,
  .index-main-standings-table td {
    padding: 4px 3px;
  }
  .index-main-standings-table th {
    font-size: 0.54rem;
  }
  .index-main-standings-table td,
  .index-main-standings-team span {
    font-size: 0.62rem;
  }
  .index-main-standings-team img {
    width: 13px;
    height: 13px;
  }
  .index-main-standings-more-btn {
    font-size: 0.72rem;
    padding: 7px 10px;
  }
  .index-my-form-block {
    padding: 14px 12px;
  }
  .index-my-form-head {
    margin-bottom: 8px;
  }
  .index-my-form-head.index-my-form-title-bar {
    padding: 8px 12px;
  }
  .index-my-form-title {
    font-size: 0.95rem;
  }
  .index-my-form-title .index-my-form-balance {
    font-size: 0.85rem;
  }
  .index-my-form-desc {
    font-size: 0.82rem;
  }
}

/* הודעה כשהאתר במצב סגור */
.site-closed-block {
  text-align: center;
  padding: var(--space-y) var(--space-x);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}
.site-closed-message {
  margin: 0;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================================
 * התחברות לצפייה בהימורים – עטיפה + פאנל משותף (ספורט / אח גדול / דף כדורגל)
 * ===================================================================== */
body.football-site-page {
  --hub-accent: var(--accent-sport, #f5c518);
}

.football-betting-hub-wrap {
  position: relative;
  align-self: stretch;
}

/* עיצוב מלא רק כשמוצג מסך "התחברות לצפייה" – התוכן האמיתי (יחסים / צ'אנס) מתחת; רקע העטיפה שקוף כדי שהטשטוש יראה את הבלוק
   אורך אחיד: ספורט · אח גדול · צ'אנס (אותו גובה תיבה) */
.football-betting-hub-wrap:has(.site-betting-login-wall) {
  --hub-login-wall-h: min(52vh, 460px);
  min-height: var(--hub-login-wall-h);
  height: var(--hub-login-wall-h);
  max-height: var(--hub-login-wall-h);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(var(--hub-accent-rgb, 245, 197, 24), 0.22);
  background: transparent;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.football-betting-hub-wrap:has(.site-betting-login-wall) > :not(.site-betting-login-wall) {
  position: relative;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

body.page-hub-sport .index-home-hub .football-betting-hub-wrap:has(.site-betting-login-wall),
body.page-hub-bigbrother .index-home-hub .football-betting-hub-wrap:has(.site-betting-login-wall) {
  border-inline-start: 3px solid rgba(var(--hub-accent-rgb, 245, 197, 24), 0.55);
}

body.page-hub-bigbrother .index-home-hub--bigbrother > .football-betting-hub-wrap:has(.site-betting-login-wall) {
  margin-bottom: 0;
}

.site-betting-login-wall {
  --auth-accent: var(--hub-accent, var(--accent-sport, #f5c518));
  --auth-accent-rgb: var(--hub-accent-rgb, 245, 197, 24);
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
  pointer-events: auto;
  /* זכוכית מטושטשת מעל התוכן – רואים את הבלוק בטשטוש */
  background-image:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(4, 6, 10, 0.32) 100%
    ),
    linear-gradient(
      155deg,
      rgba(var(--auth-accent-rgb), 0.16) 0%,
      rgba(var(--auth-accent-rgb), 0.06) 100%
    );
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
}

body.football-site-page .site-betting-login-wall {
  --auth-accent: var(--hub-accent, var(--accent-sport, #f5c518));
}

body.football-site-page .football-betting-hub-wrap:has(.site-betting-login-wall) {
  border-inline-start: 3px solid rgba(var(--hub-accent-rgb, 245, 197, 24), 0.55);
}

/* צ'אנס – אותה עטיפה מלאה כמו ספורט; צבע לפי --chance-accent על body */
body.page-hub-chance {
  --chance-accent: var(--accent-sport, #f5c518);
  --chance-accent-rgb: 245, 197, 24;
}
body.page-hub-chance .site-betting-login-wall {
  --auth-accent: var(--chance-accent, var(--accent-sport, #f5c518));
  --auth-accent-rgb: var(--chance-accent-rgb, 245, 197, 24);
  background-image:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.055) 0%,
      rgba(6, 8, 14, 0.34) 100%
    ),
    linear-gradient(
      155deg,
      rgba(var(--auth-accent-rgb), 0.2) 0%,
      rgba(var(--auth-accent-rgb), 0.075) 100%
    );
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
}

body.page-hub-chance .index-home-hub--chance .football-betting-hub-wrap:has(.site-betting-login-wall) {
  border: 1px solid rgba(var(--chance-accent-rgb, 245, 197, 24), 0.24);
  border-inline-start: 3px solid rgba(var(--chance-accent-rgb, 245, 197, 24), 0.58);
  background: transparent;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(var(--chance-accent-rgb, 245, 197, 24), 0.08);
}

/* פאנל אימות – --auth-accent מגיע מ-.site-betting-login-wall (או מ-.betting-auth-panel--chance ב-chance-form.css) */
.betting-auth-panel {
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
  padding: clamp(20px, 4vw, 28px) clamp(18px, 3vw, 24px);
  text-align: center;
  border-radius: 16px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.42)),
    linear-gradient(180deg, rgba(var(--auth-accent-rgb, 245, 197, 24), 0.12), rgba(var(--auth-accent-rgb, 245, 197, 24), 0.045));
  border: 1px solid rgba(var(--auth-accent-rgb, 245, 197, 24), 0.28);
  border-inline-start: 4px solid rgba(var(--auth-accent-rgb, 245, 197, 24), 0.65);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.betting-auth-panel--overlay {
  max-width: 20.5rem;
}

.betting-auth-panel__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(var(--auth-accent-rgb, 245, 197, 24), 0.16);
  border: 1px solid rgba(var(--auth-accent-rgb, 245, 197, 24), 0.32);
  box-shadow: 0 4px 14px rgba(var(--auth-accent-rgb, 245, 197, 24), 0.18);
}

.betting-auth-panel__icon {
  display: block;
  opacity: 0.95;
}

.betting-auth-panel__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: -0.02em;
}

.betting-auth-panel__hint {
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

.betting-auth-panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0d0d0d;
  text-decoration: none;
  border-radius: 12px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(180deg, rgba(var(--auth-accent-rgb, 245, 197, 24), 1), rgba(var(--auth-accent-rgb, 245, 197, 24), 0.78));
  border: 1px solid rgba(var(--auth-accent-rgb, 245, 197, 24), 0.45);
  box-shadow: 0 4px 16px rgba(var(--auth-accent-rgb, 245, 197, 24), 0.28);
  transition: filter 0.15s ease, transform 0.12s ease;
}

.betting-auth-panel__btn:hover {
  filter: brightness(1.07);
}

.betting-auth-panel__btn:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .football-betting-hub-wrap:has(.site-betting-login-wall) {
    --hub-login-wall-h: min(44vh, 400px);
    min-height: var(--hub-login-wall-h);
    height: var(--hub-login-wall-h);
    max-height: var(--hub-login-wall-h);
    border-radius: 0;
    border-inline: none;
    box-shadow: none;
  }
  body.page-hub-bigbrother .index-home-hub--bigbrother > .index-col--live.football-betting-hub-wrap:has(.site-betting-login-wall) {
    border-radius: 0 !important;
  }
  .site-betting-login-wall {
    padding: 20px 14px;
  }
  .betting-auth-panel__title {
    font-size: 1rem;
  }
}

/* ===== מובייל: התאמות נוספות למסכים קטנים ===== */
@media (max-width: 768px) {
  :root {
    --header-top-height: 30px;
    --header-main-height: 56px;
    /* ברירת מחדל לפני JS; header.js מעדכן לפי גובה אמיתי של .header (כולל row2 / iOS) */
    --header-mobile-total: calc(var(--header-top-height) + var(--header-main-height) + 80px);
    --header-sticky-top: var(--header-mobile-total);
    --footer-height: auto;
  }
  .site-closed-block {
    padding: var(--space-y-sm) var(--space-x-sm);
    border-radius: 10px;
  }
  .site-closed-message {
    font-size: 1rem;
  }
  /* מובייל: "הטופס שלי" מוצג רק כשיש תוכן (ספורט: football-slip.js; צ'אנס: chance-index-form.js; אח גדול: מחלקה --has-slip כשיחובר סליפ). דף תוצאות צ'אנס: chance-results.css */
  .index-my-form-block:not(.index-my-form-block--has-slip) {
    display: none !important;
  }
}

@media (max-width: 480px) {
  :root {
    --header-top-height: 28px;
    --header-main-height: 48px;
    --header-mobile-total: calc(var(--header-top-height) + var(--header-main-height) + 106px);
  }
}

@media (max-width: 360px) {
  :root {
    --header-top-height: 26px;
    --header-main-height: 44px;
    --header-mobile-total: calc(var(--header-top-height) + var(--header-main-height) + 100px);
    --space-x-xs: 10px;
    --space-y-xs: 16px;
  }
  .site-closed-block {
    padding: var(--space-y-xs) var(--space-x-xs);
    border-radius: 8px;
  }
  .site-closed-message {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .index-my-form-block {
    padding: 12px 10px;
  }
  .index-main-standings-head {
    padding: 8px 10px;
  }
  .index-main-standings-title {
    font-size: 0.82rem;
  }
  .index-main-standings-meta {
    font-size: 0.66rem;
  }
  .index-main-standings-table-wrap {
    padding: 0 6px 8px;
  }
  .index-main-standings-table th,
  .index-main-standings-table td {
    padding: 3px 2px;
  }
  .index-main-standings-table th {
    font-size: 0.48rem;
  }
  .index-main-standings-table td,
  .index-main-standings-team span {
    font-size: 0.58rem;
  }
  .index-main-standings-team img {
    width: 11px;
    height: 11px;
  }
  .index-main-standings-more-btn {
    font-size: 0.66rem;
    padding: 6px 8px;
  }
  .index-my-form-head.index-my-form-title-bar {
    padding: 8px 10px;
  }
  .index-my-form-title {
    font-size: 0.88rem;
  }
  .index-my-form-title .index-my-form-balance {
    font-size: 0.8rem;
  }
  .index-my-form-desc {
    font-size: 0.78rem;
  }
}

@media (max-width: 320px) {
  :root {
    --header-top-height: 26px;
    --header-main-height: 40px;
    --header-mobile-total: calc(var(--header-top-height) + var(--header-main-height) + 94px);
  }
}

/* ===== Toast Notifications ===== */
[id="10bet-toast-container"] {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  pointer-events: none;
  width: 100%;
  max-width: min(92vw, 470px);
  max-height: min(52vh, 420px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  direction: rtl;
  unicode-bidi: isolate;
  text-align: start;
  padding: 0 max(1rem, env(safe-area-inset-right, 0px)) 0 max(1rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.t10-toast {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  padding-block: 0.62rem;
  padding-inline: clamp(0.72rem, 2.4vw, 0.95rem);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  pointer-events: auto;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
  /* החלקה אופקית לסגירה + גלילה אנכית בתוכן ארוך */
  touch-action: pan-x pan-y pinch-zoom;
  position: relative;
  opacity: 0;
  transform: translateY(-1rem) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.t10-toast--no-icon {
  gap: 0;
  justify-content: flex-start;
}

.t10-toast--no-icon > .t10-toast-msg,
.t10-toast--no-icon > .t10-toast-body-link {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.t10-toast.t10-toast--visible {
  opacity: var(--t10-swipe-opacity, 1);
  transform: translateY(0) scale(1) translateX(var(--t10-swipe, 0px));
}

.t10-toast.t10-toast--exit:not(.t10-toast--exit-swipe) {
  opacity: 0;
  transform: translateY(-0.5rem) scale(0.95);
}

.t10-toast.t10-toast--exit.t10-toast--exit-swipe[data-swipe-dir="start"] {
  opacity: 0;
  transform: translateY(0) scale(0.96) translateX(-120vw);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.26s ease;
}

.t10-toast.t10-toast--exit.t10-toast--exit-swipe[data-swipe-dir="end"] {
  opacity: 0;
  transform: translateY(0) scale(0.96) translateX(120vw);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.26s ease;
}

[id="10bet-toast-container"] .t10-toast-msg:not(.t10-toast-msg--html) {
  text-align: start;
}

.t10-toast-msg.t10-toast-msg--html {
  line-height: 1.38;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
  text-align: start;
}

/* טוסט הוספת/הסרת מדינה ממועדפים — דגל בריבוע + מקף + טקסט */
.t10-toast-country-fav {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  width: 100%;
  min-width: 0;
}

.t10-toast-country-fav-flagwrap {
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 2.05rem;
  height: 2.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.t10-toast-country-fav-flagwrap .t10-toast-country-fav-flag {
  width: 100%;
  height: 100%;
  max-width: 1.45rem;
  max-height: 1.08rem;
  object-fit: contain;
  border-radius: 2px;
}

.t10-toast-country-fav-dash,
.t10-toast-fixture-fav-dash {
  flex-shrink: 0;
  opacity: 0.55;
  font-weight: 600;
  margin-inline: 0.02rem;
}

.t10-toast-country-fav-text {
  flex: 1 1 auto;
  min-width: 0;
  text-align: start;
}

/* טוסט הוספת/הסרת משחק ממועדפים */
.t10-toast-fixture-fav {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  width: 100%;
  min-width: 0;
  text-align: start;
}

.t10-toast-fixture-fav-main {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.26rem;
  min-width: 0;
  width: 100%;
  white-space: nowrap;
}

.t10-toast-fixture-fav-country {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.32rem;
  width: 100%;
  flex: 0 0 auto;
  min-width: 0;
}

.t10-toast-fixture-fav-country-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9em;
  font-weight: 700;
}

.t10-toast-fixture-fav-colon {
  flex-shrink: 0;
  opacity: 0.75;
  font-weight: 700;
}

.t10-toast-fixture-fav-thegame {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.9em;
  opacity: 0.95;
}

.t10-toast-fixture-fav-teams {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.24rem;
  min-width: 0;
}

.t10-toast-fixture-fav-teams-wrap {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.34rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.t10-toast-fixture-fav-team {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.22rem;
  flex: 1 1 0;
  min-width: 0;
}

.t10-toast-fixture-fav-team-name {
  font-weight: 600;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t10-toast-fixture-fav-vs {
  flex-shrink: 0;
  font-size: 0.68em;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0.65;
  margin-inline: 0.02rem;
}

/* max-width:100% ב־img גלובלי גורם לכיפוף ל־0 כשהורה בפלקס עם min-width:0 */
.t10-toast .t10-toast-fixture-fav-team-logo {
  display: block;
  width: 19px !important;
  height: 19px !important;
  min-width: 19px !important;
  max-width: 19px !important;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.t10-toast-fixture-fav-team-logo--ph {
  display: inline-block;
  width: 19px;
  height: 19px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.t10-toast-fixture-fav-foot {
  flex-shrink: 0;
  font-size: 0.9em;
  font-weight: 600;
  opacity: 0.88;
  white-space: nowrap;
}

.t10-toast-fixture-fav-flagwrap {
  width: 1.22rem;
  height: 1.22rem;
  padding: 0.12rem;
  border-radius: 6px;
}

@media (max-width: 520px) {
  .t10-toast-fixture-fav-main {
    gap: 0.16rem;
    font-size: 0.94em;
  }
  .t10-toast .t10-toast-fixture-fav-team-logo {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    max-width: 17px !important;
  }
  .t10-toast-fixture-fav-team-logo--ph {
    width: 17px;
    height: 17px;
  }
  .t10-toast-fixture-fav-teams,
  .t10-toast-fixture-fav-teams-wrap {
    gap: 0.18rem;
  }
  .t10-toast-fixture-fav-team {
    gap: 0.16rem;
  }
  .t10-toast-fixture-fav-country {
    gap: 0.24rem;
  }
  .t10-toast-fixture-fav-country-name {
    font-size: 0.86em;
  }
  .t10-toast-country-fav-flagwrap {
    width: 1.92rem;
    height: 1.92rem;
  }
  .t10-toast-fixture-fav-flagwrap {
    width: 1.05rem;
    height: 1.05rem;
    padding: 0.1rem;
  }
}
a.t10-toast-body-link {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  align-self: stretch;
  border-radius: 6px;
  outline-offset: 2px;
}

a.t10-toast-body-link:hover {
  color: inherit;
  text-decoration: none;
}

a.t10-toast-body-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
}

a.t10-toast-body-link .t10-toast-msg--html {
  flex: 1 1 auto;
  min-width: 0;
}
.t10-toast-live-wrap {
  width: 100%;
}

/* טוסט לייב מועדפים: מדינה (ימין) | מרכז | דקה (שמאל) — ריילים מרובעים (צלע = גובה שורת הפלקס = גובה המרכז) */
.t10-toast-live-wrap--tri {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.58rem;
  width: 100%;
  box-sizing: border-box;
  padding-block: 0.12rem;
}

.t10-toast-live-tri-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
  align-items: stretch;
  padding-inline: 0.08rem;
}

.t10-toast-live-wrap--tri .t10-toast-live-block--score {
  gap: 0.36rem;
  width: 100%;
}

.t10-toast-live-rail {
  box-sizing: border-box;
  flex: 0 0 auto;
  align-self: stretch;
  width: auto;
  aspect-ratio: 1;
  min-width: 2.72rem;
  max-height: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.32rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.t10-toast-live-rail--empty {
  opacity: 0.5;
}

.t10-toast-live-rail-country-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.26rem;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  padding-block: 0.08rem;
}

.t10-toast-live-rail-flag {
  width: 100%;
  max-width: 2.16rem;
  height: auto;
  max-height: 1.5rem;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.t10-toast-live-rail-flag--ph {
  display: block;
  width: 2.2rem;
  height: 1.5rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.09);
  flex-shrink: 0;
}

.t10-toast-live-rail-country-name {
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.22;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-inline: 0.06rem;
}

.t10-toast-live-rail--minute {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.09);
}

.t10-toast-live-rail-minute-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  width: 100%;
  min-width: 0;
  padding-inline: 0.04rem;
}

.t10-toast-live-rail-minute-line {
  text-align: center;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.t10-toast-live-rail-minute-line--primary {
  font-size: clamp(0.98rem, 2.8vw, 1.22rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.5);
}

.t10-toast-live-rail-minute-line--extra {
  font-size: clamp(0.68rem, 2vw, 0.82rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.36);
  margin-top: 0.02rem;
}

.t10-toast-live-rail-minute-line--solo {
  display: block;
  font-size: clamp(0.94rem, 3vw, 1.26rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.03em;
  text-align: center;
  color: rgba(255, 255, 255, 0.46);
  padding-inline: 0.1rem;
}

.t10-toast-live-rail--minute-compact .t10-toast-live-rail-minute-line--solo {
  font-size: clamp(0.72rem, 2.45vw, 0.92rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

/* הדקה מוצגת בעמודה — לא כפול בשורות גול */
.t10-toast-live-wrap--tri .t10-toast-live-block--fused .t10-toast-live-alertline--goal .t10-toast-live-goal-minute {
  display: none;
}

/* טוסט tri: שורות אירוע מתחת לשורת המשחק */
.t10-toast-live-wrap--tri .t10-toast-live-block--fused > .t10-toast-live-alertline {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  align-content: center;
  gap: 0.48rem;
  text-align: start;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  line-height: 1.22;
  min-height: 1.25rem;
}

.t10-toast-live-wrap--tri .t10-toast-live-block--fused > .t10-toast-live-alertline--card {
  flex-wrap: nowrap;
  align-content: center;
  row-gap: 0.26rem;
}

.t10-toast-live-wrap--tri .t10-toast-live-alertline--goal .t10-toast-live-goal-teamname {
  text-align: start;
}

.t10-toast-live-event-team,
.t10-toast-live-event-action {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex-wrap: nowrap;
  line-height: 1.22;
}

.t10-toast-live-event-team {
  flex: 1 1 auto;
  justify-content: flex-start;
  gap: 0.28rem;
  overflow: hidden;
  text-align: start;
}

.t10-toast-live-event-action {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 0.28rem;
  margin-inline-start: 0;
  white-space: nowrap;
  text-align: end;
}

.t10-toast-live-event-team > .t10-toast-live-alertline-team {
  flex: 1 1 auto;
  max-width: none;
  justify-content: flex-start;
}

.t10-toast-live-event-team .t10-toast-live-name,
.t10-toast-live-event-team .t10-toast-live-goal-teamname {
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.t10-toast-live-event-action .t10-toast-live-player {
  min-width: 0;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.t10-toast-live-block + .t10-toast-live-block {
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.t10-toast-live-name {
  font-weight: 700;
  min-width: 0;
}
.t10-toast-team-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}
.t10-toast-team-logo--ph {
  display: inline-block;
  min-width: 22px;
  min-height: 22px;
}

/* שורה 1: לוגו+שם בית | תוצאה | שם+לוגו חוץ */
.t10-toast-live-block--score {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

/* שורות פירוט (גול / כרטיס / סטטוס): קטנות יותר מהשורה העליונה */
.t10-toast-live-block--score > .t10-toast-live-alertline--goal,
.t10-toast-live-block--score > .t10-toast-live-alertline--card,
.t10-toast-live-block--score > .t10-toast-live-alertline--status,
.t10-toast-live-block--card > .t10-toast-live-alertline--card,
.t10-toast-live-block--status > .t10-toast-live-alertline--status {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.32;
  opacity: 0.96;
}

.t10-toast-live-block--score > .t10-toast-live-alertline--goal .t10-toast-live-goal-minute {
  font-size: 0.76rem;
  font-weight: 800;
}

.t10-toast-live-block--score > .t10-toast-live-alertline--goal .t10-toast-live-goal-teamname {
  font-weight: 600;
  font-size: 0.8rem;
}

.t10-toast-live-block--score > .t10-toast-live-alertline--goal .t10-toast-live-kind--goal {
  font-size: 0.78rem;
  font-weight: 800;
}

.t10-toast-live-block--score > .t10-toast-live-alertline--goal .t10-toast-team-logo,
.t10-toast-live-block--score > .t10-toast-live-alertline--goal .t10-toast-team-logo--ph {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
}

.t10-toast-live-block--score > .t10-toast-live-alertline--goal .t10-toast-goal-ico {
  width: 1.15rem;
  height: 1.15rem;
}

.t10-toast-live-block--score > .t10-toast-live-alertline--goal .t10-toast-goal-ico img {
  width: 17px;
  height: 17px;
}

.t10-toast-live-block--score > .t10-toast-live-alertline--goal .t10-toast-goal-ico--emoji {
  font-size: 0.95rem;
}

.t10-toast-live-block--score > .t10-toast-live-alertline--card .t10-toast-live-kind,
.t10-toast-live-block--card > .t10-toast-live-alertline--card .t10-toast-live-kind {
  font-size: 0.78rem;
}

.t10-toast-live-block--score > .t10-toast-live-alertline--card .t10-toast-team-logo,
.t10-toast-live-block--score > .t10-toast-live-alertline--card .t10-toast-team-logo--ph,
.t10-toast-live-block--card > .t10-toast-live-alertline--card .t10-toast-team-logo,
.t10-toast-live-block--card > .t10-toast-live-alertline--card .t10-toast-team-logo--ph {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
}

.t10-toast-live-block--score > .t10-toast-live-alertline--status .t10-toast-live-kind--status,
.t10-toast-live-block--status > .t10-toast-live-alertline--status .t10-toast-live-kind--status {
  font-size: 0.78rem;
}

/* שורת משחק: צד ימין | תוצאה | צד שמאל — תמיד בשורה אחת */
.t10-toast-live-matchbar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  width: 100%;
  margin: 0;
  padding: 0 0 0.44rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  direction: rtl;
  min-width: 0;
}

.t10-toast-live-matchbar-side {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.26rem;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.t10-toast-live-matchbar-side--home {
  justify-content: flex-start;
  text-align: start;
}

.t10-toast-live-matchbar-side--away {
  justify-content: flex-end;
  text-align: end;
}

.t10-toast-live-matchbar-score {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 0.16em;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0 0.2rem;
  text-align: center;
  direction: ltr;
  unicode-bidi: isolate;
}

.t10-toast-live-matchbar-score-left,
.t10-toast-live-matchbar-score-right {
  display: inline-block;
  min-width: 0.64em;
  text-align: center;
  direction: ltr;
  unicode-bidi: isolate;
}

.t10-toast-live-matchbar .t10-toast-live-name {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  word-break: normal;
  font-size: 0.8rem;
  line-height: 1.22;
}

.t10-toast-live-matchbar .t10-toast-live-name--compact {
  font-size: 0.72rem;
  letter-spacing: -0.01em;
}

.t10-toast-live-matchbar .t10-toast-live-name--mini {
  font-size: 0.64rem;
  letter-spacing: -0.018em;
}

.t10-toast-live-matchbar .t10-toast-live-name--tiny {
  font-size: 0.56rem;
  letter-spacing: -0.024em;
}

.t10-toast-live-matchbar .t10-toast-live-name--ultra {
  font-size: 0.48rem;
  letter-spacing: -0.03em;
}

.t10-toast-live-matchbar--compact {
  gap: 0.34rem;
}

.t10-toast-live-matchbar--mini,
.t10-toast-live-matchbar--tiny {
  gap: 0.26rem;
}

.t10-toast-live-matchbar--ultra {
  gap: 0.18rem;
}

.t10-toast-live-matchbar--mini .t10-toast-team-logo,
.t10-toast-live-matchbar--mini .t10-toast-team-logo--ph {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
}

.t10-toast-live-matchbar--tiny .t10-toast-team-logo,
.t10-toast-live-matchbar--tiny .t10-toast-team-logo--ph,
.t10-toast-live-matchbar--ultra .t10-toast-team-logo,
.t10-toast-live-matchbar--ultra .t10-toast-team-logo--ph {
  width: 15px;
  height: 15px;
  min-width: 15px;
  min-height: 15px;
}

.t10-toast-live-matchbar--ultra .t10-toast-live-matchbar-score {
  font-size: 0.9rem;
  padding-inline: 0.08rem;
}
.t10-toast-live-matchbar-score-sep {
  font-weight: 800;
  opacity: 0.88;
  direction: ltr;
  unicode-bidi: isolate;
}

.t10-toast-live-subline {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.88;
  margin-top: 0.15rem;
}

/* שורה 2 (כרטיס וכו׳): לוגו+שם קבוצה | סוג | אייקון | : | שחקן */
.t10-toast-live-alertline {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  width: 100%;
  text-align: start;
  margin-top: 0.1rem;
}
.t10-toast-live-alertline.t10-toast-live-alertline--status {
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
  gap: 0.28rem 0.4rem;
  width: 100%;
}

/* כרטיס בטוסט: הכל בשורה אחת, ממורכז; ליבה = קבוצה+סוג+אייקון בלי שבירה ביניהם */
.t10-toast-live-alertline.t10-toast-live-alertline--card {
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  text-align: center;
  gap: 0.28rem 0.38rem;
  width: 100%;
  min-width: 0;
}

.t10-toast-live-card-core {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.28rem 0.38rem;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 100%;
  line-height: 1.22;
}

.t10-toast-live-alertline--card .t10-toast-live-card-core .t10-toast-live-alertline-team {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  justify-content: center;
}

.t10-toast-live-alertline--card .t10-toast-live-card-core .t10-toast-card-ico,
.t10-toast-live-alertline--card .t10-toast-live-card-core .t10-toast-live-kind {
  flex-shrink: 0;
}

.t10-toast-live-alertline--card .t10-toast-live-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t10-toast-live-alertline--card .t10-toast-live-player {
  text-align: center;
  min-width: 0;
  max-width: 32%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}

.t10-toast-live-alertline--status .t10-toast-live-player {
  text-align: center;
  white-space: normal;
  max-width: 100%;
  line-height: 1.45;
}

.t10-toast-live-alertline--status .t10-toast-live-subline-inline {
  white-space: nowrap;
}

.t10-toast-live-block--score .t10-toast-live-alertline--goal + .t10-toast-live-alertline--goal {
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.t10-toast-live-alertline.t10-toast-live-alertline--goal {
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 0;
  text-align: center;
  font-size: 0.78rem;
}

/* כדור + תווית גול (או עודכנה התוצאה) — אחרי דקה·לוגו·שם קבוצה */
.t10-toast-live-goal-mark {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  flex-shrink: 0;
  white-space: nowrap;
  unicode-bidi: isolate;
  line-height: 1.22;
}

.t10-toast-live-goal-mark .t10-toast-goal-ico,
.t10-toast-live-goal-mark .t10-toast-goal-ico img {
  flex-shrink: 0;
}

.t10-toast-live-alertline--goal > .t10-toast-team-logo,
.t10-toast-live-alertline--goal > .t10-toast-team-logo--ph {
  flex-shrink: 0;
}

.t10-toast-live-alertline--goal > .t10-toast-live-goal-minute {
  flex-shrink: 0;
}

.t10-toast-live-goal-minute {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.15;
  white-space: nowrap;
  opacity: 0.95;
  padding: 0 0.06rem;
}

.t10-toast-live-goal-teamname {
  font-weight: 700;
  min-width: 0;
  flex: 1 1 auto;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  line-height: 1.35;
  font-size: inherit;
}

.t10-toast-live-alertline--goal .t10-toast-live-kind--goal {
  flex-shrink: 0;
}

.t10-toast-live-goal-mark .t10-toast-live-kind--goal {
  line-height: 1.2;
}

.t10-toast-live-alertline--goal .t10-toast-live-player {
  min-width: 0;
  flex: 1 1 auto;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  max-width: none;
  font-size: inherit;
}

.t10-toast-live-alertline--goal.t10-toast-live-alertline--compact {
  gap: 0.22rem;
  font-size: 0.72rem;
}

.t10-toast-live-alertline--goal.t10-toast-live-alertline--mini {
  gap: 0.18rem;
  font-size: 0.66rem;
}

.t10-toast-live-alertline--goal.t10-toast-live-alertline--compact .t10-toast-goal-ico {
  width: 1rem;
  height: 1rem;
}

.t10-toast-live-alertline--goal.t10-toast-live-alertline--compact .t10-toast-goal-ico img {
  width: 15px;
  height: 15px;
}

.t10-toast-goal-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
}

.t10-toast-goal-ico img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.t10-toast-goal-ico--emoji {
  font-size: 1.1rem;
  line-height: 1;
}

.t10-toast-live-kind--goal {
  color: #eafaf0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.t10-toast-live-alertline-team {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  max-width: 42%;
}

.t10-toast-live-wrap--tri .t10-toast-live-event-team > .t10-toast-live-alertline-team {
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
  justify-content: flex-start;
  gap: 0.28rem;
  line-height: 1.22;
}

.t10-toast-live-wrap--tri .t10-toast-live-event-team .t10-toast-live-name,
.t10-toast-live-wrap--tri .t10-toast-live-event-team .t10-toast-live-goal-teamname {
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.t10-toast-live-wrap--tri .t10-toast-live-event-action .t10-toast-live-player {
  min-width: 0;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.t10-toast-live-wrap--tri .t10-toast-live-event-action .t10-toast-live-card-core {
  flex: 0 0 auto;
  gap: 0.24rem;
}
.t10-toast-live-kind {
  font-weight: 800;
  font-size: 0.84rem;
  white-space: nowrap;
}
.t10-toast-live-kind--yellow {
  color: #fff3c4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.t10-toast-live-kind--red {
  color: #ffe4e0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.t10-toast-live-kind--status {
  color: rgba(186, 230, 253, 0.95);
}
.t10-toast-live-alertline-sep {
  font-weight: 800;
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0 0.05rem;
}
.t10-toast-live-subline-inline {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.82;
  white-space: nowrap;
}
.t10-toast-card-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.t10-toast-card-ico svg {
  display: block;
}
.t10-toast-card-delta {
  margin-inline-start: 0.25rem;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.22);
}
.t10-toast-live-player {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  max-width: 100%;
  word-break: break-word;
  line-height: 1.35;
}
.t10-toast-live-player--na {
  opacity: 0.55;
  font-weight: 600;
}

@media (max-width: 520px) {
  [id="10bet-toast-container"] {
    max-width: 100%;
    max-height: min(48vh, 380px);
    padding-inline: max(0.4rem, env(safe-area-inset-left, 0px)) max(0.4rem, env(safe-area-inset-right, 0px));
  }
  .t10-toast {
    padding: 0.5rem 0.65rem;
    font-size: 0.8rem;
    gap: 0.4rem;
    border-radius: 8px;
  }
  .t10-toast-live-matchbar {
    gap: 0.26rem;
  }
  .t10-toast-live-matchbar-score {
    font-size: 0.95rem;
  }
  .t10-toast-live-matchbar .t10-toast-live-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    font-size: 0.78rem;
  }
  .t10-toast-live-matchbar .t10-toast-live-name--compact {
    font-size: 0.68rem;
  }
  .t10-toast-live-matchbar .t10-toast-live-name--mini {
    font-size: 0.58rem;
  }
  .t10-toast-live-matchbar .t10-toast-live-name--tiny {
    font-size: 0.5rem;
  }
  .t10-toast-live-matchbar .t10-toast-live-name--ultra {
    font-size: 0.44rem;
  }
  .t10-toast-live-matchbar--mini,
  .t10-toast-live-matchbar--tiny {
    gap: 0.18rem;
  }
  .t10-toast-live-matchbar--ultra {
    gap: 0.12rem;
  }
  .t10-toast-team-logo {
    width: 18px;
    height: 18px;
  }
  .t10-toast-team-logo--ph {
    min-width: 18px;
    min-height: 18px;
  }
  .t10-toast-msg--html .t10-toast-team-logo {
    width: 18px;
    height: 18px;
  }
  .t10-toast-live-alertline-team {
    max-width: 100%;
  }
  .t10-toast-live-alertline--card .t10-toast-live-card-core .t10-toast-live-alertline-team {
    max-width: min(52vw, 9rem);
  }
  .t10-toast-live-alertline--goal .t10-toast-live-goal-teamname {
    max-width: none;
    font-size: inherit;
  }
  .t10-toast-live-kind {
    font-size: 0.78rem;
  }
  .t10-toast-live-player {
    font-size: 0.8rem;
  }
  .t10-toast-live-subline {
    font-size: 0.72rem;
  }
  .t10-toast-live-alertline--goal > .t10-toast-team-logo,
  .t10-toast-live-alertline--goal > .t10-toast-team-logo--ph {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
  }
  .t10-toast-live-goal-mark {
    gap: 0.22rem;
  }
  .t10-toast-live-goal-minute {
    font-size: 0.74rem;
  }
  .t10-toast-live-alertline.t10-toast-live-alertline--goal .t10-toast-live-player {
    max-width: none;
  }

  .t10-toast-live-alertline.t10-toast-live-alertline--goal {
    gap: 0.2rem;
    font-size: 0.7rem;
  }

  .t10-toast-live-wrap--tri .t10-toast-live-block--fused > .t10-toast-live-alertline {
    gap: 0.32rem;
    min-height: 1.15rem;
  }

  .t10-toast-live-event-team {
    gap: 0.22rem;
  }

  .t10-toast-live-event-action {
    gap: 0.2rem;
  }

  .t10-toast-live-alertline--goal.t10-toast-live-alertline--compact {
    gap: 0.16rem;
    font-size: 0.64rem;
  }

  .t10-toast-live-alertline--goal.t10-toast-live-alertline--mini {
    gap: 0.12rem;
    font-size: 0.58rem;
  }

  .t10-toast-live-wrap--tri {
    gap: 0.48rem;
    padding-block: 0.06rem;
  }

  .t10-toast-live-tri-main {
    padding-inline: 0.06rem;
  }

  .t10-toast-live-wrap--tri .t10-toast-live-block--score {
    gap: 0.38rem;
  }

  .t10-toast-live-rail {
    min-width: 2.68rem;
    padding: 0.34rem 0.3rem;
    border-radius: 10px;
  }

  .t10-toast-live-rail-country-stack {
    gap: 0.26rem;
  }

  .t10-toast-live-rail-flag {
    max-width: 2.25rem;
    max-height: 1.55rem;
  }

  .t10-toast-live-rail-flag--ph {
    width: 2rem;
    height: 1.38rem;
  }

  .t10-toast-live-rail-country-name {
    font-size: 0.58rem;
    line-height: 1.18;
    -webkit-line-clamp: 2;
  }

  .t10-toast-live-rail-minute-line--primary {
    font-size: clamp(0.95rem, 3.9vw, 1.22rem);
    letter-spacing: 0.03em;
  }

  .t10-toast-live-rail-minute-line--extra {
    font-size: clamp(0.68rem, 2.9vw, 0.82rem);
  }

  .t10-toast-live-rail-minute-line--solo {
    font-size: clamp(0.9rem, 4.1vw, 1.18rem);
  }

  .t10-toast-live-rail--minute-compact .t10-toast-live-rail-minute-line--solo {
    font-size: clamp(0.7rem, 3.2vw, 0.88rem);
    line-height: 1.2;
  }

  .t10-toast-live-rail-minute-stack {
    gap: 0.06rem;
  }
}

@media (max-width: 380px) {
  .t10-toast-live-wrap--tri {
    gap: 0.38rem;
  }

  .t10-toast-live-rail {
    min-width: 2.45rem;
    padding: 0.28rem 0.24rem;
    border-radius: 9px;
  }

  .t10-toast-live-rail-minute-line--primary {
    font-size: clamp(0.88rem, 4.5vw, 1.08rem);
  }

  .t10-toast-live-rail-minute-line--extra {
    font-size: clamp(0.62rem, 3.4vw, 0.76rem);
  }

  .t10-toast-live-rail-minute-line--solo {
    font-size: clamp(0.82rem, 4.8vw, 1.05rem);
  }

  .t10-toast-live-alertline.t10-toast-live-alertline--goal {
    font-size: 0.64rem;
  }

  .t10-toast-live-alertline--goal.t10-toast-live-alertline--compact {
    font-size: 0.57rem;
  }

  .t10-toast-live-alertline--goal.t10-toast-live-alertline--mini {
    font-size: 0.52rem;
  }
}

.t10-toast--success {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.92), rgba(30, 132, 73, 0.92));
  border: 1px solid rgba(39, 174, 96, 0.5);
}

.t10-toast--error {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.92), rgba(192, 57, 43, 0.92));
  border: 1px solid rgba(231, 76, 60, 0.5);
}

.t10-toast--warn {
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.92), rgba(230, 126, 34, 0.92));
  border: 1px solid rgba(243, 156, 18, 0.5);
  color: #1a1a1a;
}

.t10-toast--info {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.92), rgba(41, 128, 185, 0.92));
  border: 1px solid rgba(52, 152, 219, 0.5);
}

.t10-toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.t10-toast-msg {
  flex: 1;
  min-width: 0;
}

/* Toast — צבעים לפי סוג משחק (ספורט / אח גדול / צ'אנס) */
.t10-toast--game-sport.t10-toast--success {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.95), rgba(22, 120, 72, 0.95));
  border-color: rgba(46, 204, 113, 0.55);
  color: #fff;
}

.t10-toast--game-sport.t10-toast--error {
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.95), rgba(120, 40, 31, 0.95));
  border-color: rgba(231, 76, 60, 0.5);
}

.t10-toast--game-sport.t10-toast--warn {
  background: linear-gradient(135deg, rgba(46, 160, 67, 0.35), rgba(30, 100, 50, 0.5));
  border-color: rgba(39, 174, 96, 0.45);
  color: #f4fff7;
}

.t10-toast--game-sport.t10-toast--info {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.92), rgba(39, 174, 96, 0.75));
  border-color: rgba(52, 152, 219, 0.45);
}

.t10-toast--game-bigbrother.t10-toast--success {
  background: linear-gradient(135deg, rgba(63, 175, 222, 0.95), rgba(41, 128, 185, 0.95));
  border-color: rgba(52, 152, 219, 0.55);
  color: #fff;
}

.t10-toast--game-bigbrother.t10-toast--error {
  background: linear-gradient(135deg, rgba(41, 80, 120, 0.95), rgba(192, 57, 43, 0.88));
  border-color: rgba(231, 76, 60, 0.45);
}

.t10-toast--game-bigbrother.t10-toast--warn {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.45), rgba(243, 156, 18, 0.55));
  border-color: rgba(63, 175, 222, 0.5);
  color: #0d1a22;
}

.t10-toast--game-bigbrother.t10-toast--info {
  background: linear-gradient(135deg, rgba(63, 175, 222, 0.92), rgba(52, 152, 219, 0.88));
  border-color: rgba(63, 175, 222, 0.5);
}

.t10-toast--game-chance.t10-toast--success {
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.96), rgba(211, 84, 0, 0.94));
  border-color: rgba(241, 196, 15, 0.55);
  color: #1a1205;
}

.t10-toast--game-chance.t10-toast--error {
  background: linear-gradient(135deg, rgba(183, 92, 12, 0.96), rgba(120, 40, 31, 0.92));
  border-color: rgba(231, 76, 60, 0.45);
  color: #fff;
}

.t10-toast--game-chance.t10-toast--warn {
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.92), rgba(230, 126, 34, 0.88));
  border-color: rgba(243, 156, 18, 0.55);
  color: #1a1205;
}

.t10-toast--game-chance.t10-toast--info {
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.88), rgba(230, 126, 34, 0.85));
  border-color: rgba(230, 126, 34, 0.5);
  color: #1a1205;
}
