/* BFL Moja statistika — sve je pod .bfl-ms da ne dira ostatak sajta. */
.bfl-ms {
  --bg: #0A1430; --surf: #111D3B; --surf2: #14234A; --line: #26385F; --text: #F4F7FC; --mut: #9DADCC;
  --dom: #7DD3FC; --gost: #FDBA74; --gold: #F2B632; --goldSoft: rgba(242, 182, 50, 0.16);
  --ok: #34D399; --warn: #F2B632; --bad: #F0616D;
  --fd: 'Big Shoulders Display', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  max-width: 560px; margin: 0 auto 24px; border-radius: 18px; overflow: hidden;
  background: var(--bg); color: var(--text);
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.35;
  text-align: left; -webkit-font-smoothing: antialiased;
}
.bfl-ms[data-theme="light"] {
  --bg: #EEF3F9; --surf: #FFFFFF; --surf2: #FFFFFF; --line: #DCE3EC; --text: #13233A; --mut: #566578;
  --dom: #0369A1; --gost: #C2410C; --gold: #8A5A0E; --goldSoft: #FDF1D8;
  --ok: #15803D; --warn: #B7791F; --bad: #B91C1C;
}
.bfl-ms *, .bfl-ms *::before, .bfl-ms *::after { box-sizing: border-box; }
.bfl-ms button {
  font: inherit; color: inherit; text-transform: none; letter-spacing: normal; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none; text-shadow: none; line-height: 1.2;
  min-height: 0; min-width: 0; width: auto; height: auto; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.bfl-ms button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.bfl-ms .bms-hero button:focus-visible { outline-color: #F4F7FC; }
.bfl-ms .bms-loading { padding: 28px 16px; text-align: center; color: var(--mut); }

/* ---- zaglavlje (uvek tamno plavo, kao BFL slike) ---- */
.bfl-ms .bms-hero {
  display: flex; flex-direction: column; gap: 14px; padding: 18px 16px;
  background-color: #0D1A3D;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0, rgba(255, 255, 255, 0.045) 12px, transparent 12px, transparent 34px);
  border-top: 4px solid #F4F7FC; color: #F4F7FC;
}
.bfl-ms .bms-hero-top { display: flex; align-items: center; gap: 12px; }
.bfl-ms .bms-crest {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; border: 2px solid #F4F7FC;
  background: #16285A; object-fit: contain; padding: 5px; margin: 0; max-width: none;
}
.bfl-ms .bms-crest-mono { display: flex; align-items: center; justify-content: center; padding: 0; font-family: var(--fd); font-size: 26px; font-weight: 900; }
.bfl-ms .bms-hero-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.bfl-ms .bms-hero-name { font-family: var(--fd); font-size: 30px; font-weight: 800; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bfl-ms .bms-hero-sub, .bfl-ms .bms-hero-meta, .bfl-ms .bms-lbl { font-size: 13px; color: #A9B8D6; }
.bfl-ms .bms-lbl { font-size: 12px; }
.bfl-ms .bms-theme {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.09); color: #F4F7FC; display: flex; align-items: center; justify-content: center;
}
.bfl-ms .bms-theme:hover { background: rgba(255, 255, 255, 0.16); }
.bfl-ms .bms-hero-ctx { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; }
.bfl-ms .bms-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); font-size: 13px; font-weight: 700; }
.bfl-ms .bms-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; }
.bfl-ms .bms-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 6px; align-items: end; }
.bfl-ms .bms-num { display: flex; flex-direction: column; min-width: 0; }
.bfl-ms .bms-big { font-family: var(--fd); font-size: 48px; font-weight: 900; line-height: 0.95; }
.bfl-ms .bms-num-goals { align-items: flex-end; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.bfl-ms .bms-num-goals .bms-big { font-size: 40px; line-height: 1.1; }
.bfl-ms .bms-wdl { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.1); }
.bfl-ms .bms-wdl span { display: block; height: 100%; }
.bfl-ms .bms-form { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: #A9B8D6; }
.bfl-ms .bms-sqs { display: flex; gap: 4px; }
.bfl-ms .bms-sq { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; line-height: 1; }
.bfl-ms .bms-sqs-s { gap: 3px; }
.bfl-ms .bms-sqs-s .bms-sq { width: 18px; height: 18px; border-radius: 5px; font-size: 10px; }

/* ---- telo ---- */
.bfl-ms .bms-body { display: flex; flex-direction: column; gap: 18px; padding: 16px 16px 24px; }
.bfl-ms .bms-filters { display: flex; flex-direction: column; gap: 8px; }
.bfl-ms .bms-seg { display: grid; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surf); border: 1px solid var(--line); }
.bfl-ms .bms-seg-btn {
  min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 4px;
  border-radius: 10px; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden;
}
.bfl-ms .bms-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.bfl-ms .bms-tab { min-height: 46px; border-bottom: 3px solid transparent; background: transparent; font-size: 15px; font-weight: 700; color: var(--mut); }
.bfl-ms .bms-tab:hover, .bfl-ms .bms-tab:focus, .bfl-ms .bms-tab:active { background: transparent; }
.bfl-ms .bms-theme:focus, .bfl-ms .bms-theme:active { background: rgba(255, 255, 255, 0.16); color: #F4F7FC; }
.bfl-ms .bms-more:focus, .bfl-ms .bms-more:active { background: var(--surf); color: var(--text); }
.bfl-ms .bms-sec { display: flex; flex-direction: column; gap: 10px; }
.bfl-ms .bms-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bfl-ms .bms-h {
  margin: 0; padding: 0; border: 0; background: none; color: var(--text);
  font-family: var(--fd); font-size: 24px; font-weight: 800; line-height: 1.1; text-transform: none; letter-spacing: 0;
}
.bfl-ms .bms-mut { font-size: 12px; color: var(--mut); }
.bfl-ms .bms-note { margin: 0; padding: 0; font-size: 13px; line-height: 1.5; color: var(--mut); }

/* po takmičenjima */
.bfl-ms .bms-row { border-radius: 16px; overflow: hidden; background: var(--surf); border: 1px solid var(--line); }
.bfl-ms .bms-row-main { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; text-align: left; color: var(--text); }
.bfl-ms .bms-badge { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-family: var(--fd); font-size: 19px; font-weight: 900; }
.bfl-ms .bms-row-id { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bfl-ms .bms-row-name { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bfl-ms .bms-row-rec { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.bfl-ms .bms-row-big { font-family: var(--fd); font-size: 30px; font-weight: 800; line-height: 1; }
.bfl-ms .bms-row-sub { font-size: 12px; color: var(--mut); white-space: nowrap; }
.bfl-ms .bms-halves { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.bfl-ms .bms-half { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 44px; padding: 8px 14px; color: var(--text); }
.bfl-ms .bms-half + .bms-half { border-left: 1px solid var(--line); }
.bfl-ms .bms-half-l { font-size: 13px; color: var(--mut); }
.bfl-ms .bms-half-v { font-size: 15px; font-weight: 700; white-space: nowrap; }
.bfl-ms .bms-half-v small { font-size: 12px; font-weight: 500; color: var(--mut); }

/* domaćin ili gost: zaključak + dve kartice */
.bfl-ms .bms-verdict { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surf2); border: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.bfl-ms .bms-verdict b { font-weight: 800; }
.bfl-ms .bms-verdict-i { flex-shrink: 0; display: flex; color: var(--gold); margin-top: 1px; }
.bfl-ms .bms-vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.bfl-ms .bms-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 12px; border-radius: 16px; background: var(--surf); border: 1px solid var(--line); border-top: 3px solid var(--line); }
.bfl-ms .bms-side-t { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; }
.bfl-ms .bms-side-head { display: flex; flex-direction: column; gap: 2px; }
.bfl-ms .bms-side-rec { font-family: var(--fd); font-size: 38px; font-weight: 900; line-height: 0.95; }
.bfl-ms .bms-side-sub { font-size: 12px; color: var(--mut); }
.bfl-ms .bms-side-bar { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line); }
.bfl-ms .bms-side-bar span { display: block; height: 100%; }
.bfl-ms .bms-sqs-side { gap: 3px; }
.bfl-ms .bms-sqs-side .bms-sq { width: 20px; height: 20px; border-radius: 5px; font-size: 11px; }
.bfl-ms .bms-side-st { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.bfl-ms .bms-side-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 36px; border-bottom: 1px solid var(--line); }
.bfl-ms .bms-side-row:last-child { border-bottom: 0; }
.bfl-ms .bms-side-l { font-size: 12px; line-height: 1.2; color: var(--mut); }
.bfl-ms .bms-side-v { display: flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 800; white-space: nowrap; }
.bfl-ms .bms-side-v.is-best { color: var(--ok); }
.bfl-ms .bms-check { font-size: 11px; }

/* mečevi */
.bfl-ms .bms-match { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surf); border: 1px solid var(--line); }
.bfl-ms .bms-res { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.bfl-ms .bms-match-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bfl-ms .bms-match-opp { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bfl-ms .bms-match-ph { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mut); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bfl-ms .bms-match-ph .bms-dot { width: 7px; height: 7px; flex-basis: 7px; }
.bfl-ms .bms-score { font-family: var(--fd); font-size: 26px; font-weight: 800; }
.bfl-ms .bms-more { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--text); }
.bfl-ms .bms-more:hover { background: var(--surf); color: var(--text); }
.bfl-ms .bms-week { display: flex; flex-direction: column; gap: 8px; }
.bfl-ms .bms-week-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bfl-ms .bms-week-l { font-family: var(--fd); font-size: 21px; font-weight: 800; }

/* strelci, kartoni */
.bfl-ms .bms-list-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 64px; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.bfl-ms .bms-list-cards { grid-template-columns: minmax(0, 1fr) auto; }
.bfl-ms .bms-rank { font-family: var(--fd); font-size: 18px; font-weight: 800; color: var(--mut); }
.bfl-ms .bms-name { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bfl-ms .bms-pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--goldSoft); color: var(--gold); white-space: nowrap; }
.bfl-ms .bms-goals { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; }
.bfl-ms .bms-goals b { font-family: var(--fd); font-size: 26px; font-weight: 800; }
.bfl-ms .bms-cards { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.bfl-ms .bms-card-i { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; }
.bfl-ms .bms-card-i i { display: inline-block; width: 12px; height: 16px; border-radius: 2px; }

.bfl-ms .bms-list-3 { grid-template-columns: 22px minmax(0, 1fr) auto; }

/* mečevi po takmičenju (otvara se klikom) */
.bfl-ms .bms-grp { border-radius: 16px; overflow: hidden; background: var(--surf); border: 1px solid var(--line); }
.bfl-ms .bms-grp-h { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px; gap: 12px; align-items: center; padding: 12px 14px; min-height: 60px; text-align: left; color: var(--text); background: transparent; }
.bfl-ms .bms-grp-h:hover, .bfl-ms .bms-grp-h:focus, .bfl-ms .bms-grp-h:active { background: transparent; color: var(--text); }
.bfl-ms .bms-badge-s { width: 34px; height: 34px; border-radius: 9px; font-size: 16px; }
.bfl-ms .bms-grp-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bfl-ms .bms-grp-name { font-family: var(--fd); font-size: 22px; font-weight: 800; line-height: 1.05; }
.bfl-ms .bms-grp-sub { font-size: 12px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bfl-ms .bms-chev { display: flex; align-items: center; justify-content: center; color: var(--mut); transition: transform 0.15s ease; }
.bfl-ms .bms-grp.is-open .bms-chev { transform: rotate(180deg); }
.bfl-ms .bms-grp-b { display: flex; flex-direction: column; gap: 8px; padding: 4px 10px 12px; border-top: 1px solid var(--line); }
.bfl-ms .bms-grp-b .bms-match { background: var(--bg); }
.bfl-ms .bms-sub-h { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--mut); }

/* dvomeč: ukupan rezultat + obe utakmice */
.bfl-ms .bms-tie { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.bfl-ms .bms-tie-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.bfl-ms .bms-tie-agg { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.bfl-ms .bms-status { align-self: flex-start; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.bfl-ms .bms-legs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--mut); }
.bfl-ms .bms-leg b { color: var(--text); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .bfl-ms .bms-chev { transition: none; } }

/* prazno stanje */
.bfl-ms .bms-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 20px; border-radius: 16px; border: 1px dashed var(--line); text-align: center; }
.bfl-ms .bms-empty-i { color: var(--mut); display: flex; }
.bfl-ms .bms-empty-t { font-family: var(--fd); font-size: 22px; font-weight: 800; }
.bfl-ms .bms-empty-p { max-width: 300px; font-size: 14px; line-height: 1.5; color: var(--mut); }

/* poruke i admin traka (van glavnog bloka) */
.bfl-ms-msg {
  max-width: 560px; margin: 0 auto 16px; padding: 16px 18px; border-radius: 14px;
  background: #0D1A3D; color: #F4F7FC; font-family: 'Barlow', system-ui, sans-serif; font-size: 15px;
}
.bfl-ms-admin {
  max-width: 560px; margin: 0 auto 12px; padding: 12px 14px; border-radius: 14px; border: 1px dashed #9DADCC;
  background: #F7F9FC; color: #13233A; font-family: 'Barlow', system-ui, sans-serif; font-size: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.bfl-ms-admin .bfl-ms-admin-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
.bfl-ms-admin .bfl-ms-admin-form { margin: 0; }
.bfl-ms-admin button {
  min-height: 40px; padding: 0 14px; border-radius: 10px; border: 0; background: #13233A; color: #FFFFFF;
  font: inherit; font-weight: 700; text-transform: none; letter-spacing: normal; cursor: pointer;
}
.bfl-ms-admin select { min-height: 40px; max-width: 100%; border-radius: 10px; border: 1px solid #DCE3EC; padding: 0 10px; font: inherit; background: #FFFFFF; color: #13233A; }

@media (max-width: 380px) {
  .bfl-ms .bms-side-rec { font-size: 32px; }
  .bfl-ms .bms-side { padding: 12px 10px; }
  .bfl-ms .bms-big { font-size: 42px; }
  .bfl-ms .bms-num-goals .bms-big { font-size: 34px; }
  .bfl-ms .bms-hero-name { font-size: 26px; }
  .bfl-ms .bms-seg-btn, .bfl-ms .bms-tab { font-size: 14px; }
  .bfl-ms .bms-row-big { font-size: 26px; }
}
.bfl-ms .bms-name-mut { color: var(--mut); font-weight: 600; }
.bfl-ms .bms-info { margin: 4px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surf); border: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--mut); }
.bfl-ms .bms-info b { color: var(--text); font-weight: 800; }
.bfl-ms .bms-halves-none { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.4; color: var(--mut); }
.bfl-ms .bms-res-pend { background: var(--line); color: var(--mut); }
.bfl-ms .bms-leg-sep { color: var(--mut); }

/* ---- 1.04: dugme „Podeli sliku" u zaglavlju ---- */
.bfl-ms .bms-share {
  width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.06);
  color: #F4F7FC; font-size: 15px; font-weight: 800;
}
.bfl-ms .bms-share:hover, .bfl-ms .bms-share:focus, .bfl-ms .bms-share:active { background: rgba(255, 255, 255, 0.14); color: #F4F7FC; }

/* ---- 1.04: prozor „Podeli sliku" (van glavnog bloka, preko cele strane) ---- */
.bfl-ms-modal {
  --bg: #0A1430; --surf: #111D3B; --line: #26385F; --text: #F4F7FC; --mut: #9DADCC; --ok: #34D399; --bad: #F0616D;
  --fd: 'Big Shoulders Display', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483000;
  display: flex; align-items: flex-end; justify-content: center;
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.35;
  color: var(--text); text-align: left; -webkit-font-smoothing: antialiased;
}
.bfl-ms-modal[data-theme="light"] { --bg: #EEF3F9; --surf: #FFFFFF; --line: #DCE3EC; --text: #13233A; --mut: #566578; --ok: #15803D; --bad: #B91C1C; }
.bfl-ms-modal *, .bfl-ms-modal *::before, .bfl-ms-modal *::after { box-sizing: border-box; }
.bfl-ms-modal button {
  font: inherit; color: inherit; text-transform: none; letter-spacing: normal; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none; text-shadow: none; line-height: 1.2;
  min-height: 0; min-width: 0; width: auto; height: auto; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.bfl-ms-modal button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.bfl-ms-modal .bms-m-back { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(3, 8, 20, 0.72); }
.bfl-ms-modal .bms-m-sheet {
  position: relative; width: 100%; max-width: 460px; max-height: 94vh; overflow: auto;
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 16px 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--bg); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}
@media (min-width: 600px) {
  .bfl-ms-modal { align-items: center; padding: 24px; }
  .bfl-ms-modal .bms-m-sheet { border-bottom: 1px solid var(--line); border-radius: 20px; }
}
.bfl-ms-modal .bms-m-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bfl-ms-modal .bms-m-title {
  margin: 0; padding: 0; border: 0; background: none; color: var(--text);
  font-family: var(--fd); font-size: 26px; font-weight: 800; line-height: 1.1; text-transform: none; letter-spacing: 0;
}
.bfl-ms-modal .bms-m-x { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: var(--surf); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--text); }
.bfl-ms-modal .bms-m-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surf); border: 1px solid var(--line); }
.bfl-ms-modal .bms-m-seg button { min-height: 42px; border-radius: 10px; font-size: 15px; font-weight: 700; color: var(--mut); }
.bfl-ms-modal .bms-m-seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.bfl-ms-modal .bms-m-seg button[disabled] { opacity: 0.4; cursor: not-allowed; }
.bfl-ms-modal .bms-m-prev {
  display: flex; align-items: center; justify-content: center; width: 100%;
  height: 52vh; height: min(52vh, calc((100vw - 34px) * 1.25), 532px); border-radius: 14px; background: #0A1430; overflow: hidden;
}
.bfl-ms-modal .bms-m-prev img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; border-radius: 12px; margin: 0; }
.bfl-ms-modal .bms-m-wait { padding: 20px; text-align: center; font-size: 14px; line-height: 1.5; color: #9DADCC; }
.bfl-ms-modal .bms-m-cap { margin: 0; text-align: center; font-size: 13px; line-height: 1.45; color: var(--mut); }
.bfl-ms-modal .bms-m-cap b { color: var(--text); font-weight: 800; }
.bfl-ms-modal .bms-m-act { display: grid; gap: 8px; }
.bfl-ms-modal .bms-m-act:empty { display: none; }
.bfl-ms-modal .bms-m-btn {
  min-height: 50px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surf);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--text);
}
.bfl-ms-modal .bms-m-btn.is-main { background: var(--text); border-color: var(--text); color: var(--bg); }
.bfl-ms-modal .bms-m-msg { min-height: 18px; margin: 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--ok); }
@media (prefers-reduced-motion: no-preference) {
  .bfl-ms-modal .bms-m-sheet { animation: bmsUp 0.18s ease-out; }
  @keyframes bmsUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---- 1.05: mesto u zaglavlju ---- */
.bfl-ms .bms-hero-place {
  display: inline; padding: 0; margin: 0; border: 0; background: none; font-size: inherit; line-height: inherit;
  color: #F4F7FC; font-weight: 800; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px;
}
.bfl-ms .bms-hero-place:hover, .bfl-ms .bms-hero-place:focus, .bfl-ms .bms-hero-place:active { background: none; color: #FFFFFF; }

/* ---- rekordi (dve kolone) ---- */
.bfl-ms .bms-rec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.bfl-ms .bms-recs { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bfl-ms .bms-rec-h { font-size: 13px; font-weight: 800; }
.bfl-ms .bms-rec-h.is-w { color: var(--ok); }
.bfl-ms .bms-rec-h.is-l { color: var(--bad); }
.bfl-ms .bms-rec { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 8px; border-radius: 12px; background: var(--surf); border: 1px solid var(--line); }
.bfl-ms .bms-rec-s { height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--fd); font-size: 19px; font-weight: 900; }
.bfl-ms .bms-rec-s.is-w { background: rgba(52, 211, 153, 0.16); color: var(--ok); }
.bfl-ms .bms-rec-s.is-l { background: rgba(240, 97, 109, 0.16); color: var(--bad); }
.bfl-ms .bms-rec-id { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bfl-ms .bms-rec-o { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bfl-ms .bms-rec-p { font-size: 11px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- 1.05: tabela i rang ---- */
.bfl-ms .bms-rks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.bfl-ms .bms-rk { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 12px; border-radius: 14px; background: var(--surf); border: 1px solid var(--line); }
.bfl-ms .bms-rk-l { font-size: 12px; font-weight: 700; color: var(--mut); }
.bfl-ms .bms-rk-v { display: flex; flex-direction: column; gap: 2px; }
.bfl-ms .bms-rk-v b { font-family: var(--fd); font-size: 34px; font-weight: 900; line-height: 0.95; color: var(--text); }
.bfl-ms .bms-rk-v small { font-size: 12px; line-height: 1.3; color: var(--mut); }
.bfl-ms .bms-rk-b { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; font-weight: 800; color: var(--text); }
.bfl-ms .bms-rk-b.is-top { color: var(--ok); border-color: rgba(52, 211, 153, 0.45); }
.bfl-ms .bms-rk-b.is-low { color: var(--bad); border-color: rgba(240, 97, 109, 0.45); }
.bfl-ms .bms-rk-b.is-money { color: var(--gold); border-color: rgba(242, 182, 50, 0.45); }
.bfl-ms .bms-aims { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--surf); border: 1px solid var(--line); }
.bfl-ms .bms-aim { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; font-size: 14px; line-height: 1.45; }
.bfl-ms .bms-aim + .bms-aim { border-top: 1px solid var(--line); }
.bfl-ms .bms-aim b { font-weight: 800; }
.bfl-ms .bms-aim-i { flex-shrink: 0; display: flex; margin-top: 1px; }
.bfl-ms .bms-aim.is-good .bms-aim-i { color: var(--ok); }
.bfl-ms .bms-aim.is-bad .bms-aim-i { color: var(--bad); }

/* niz u zaglavlju (samo dok traje) */
.bfl-ms .bms-form-l { display: flex; flex-direction: column; gap: 2px; }
.bfl-ms .bms-run { font-size: 13px; font-weight: 800; }
.bfl-ms .bms-run.is-good { color: #34D399; }
.bfl-ms .bms-run.is-bad { color: #F0616D; }
.bfl-ms .bms-run.is-flat { color: #C5D0E6; }
.bfl-ms .bms-info .bms-card-i { vertical-align: -2px; }
.bfl-ms .bms-info .bms-card-i i { width: 10px; height: 14px; }
.bfl-ms .bms-tbl { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--surf); border: 1px solid var(--line); }
.bfl-ms .bms-tr {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) 24px 22px 22px 22px 46px 28px; gap: 4px; align-items: center;
  min-height: 38px; padding: 0 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mut);
}
.bfl-ms .bms-tr > span { text-align: center; white-space: nowrap; }
.bfl-ms .bms-tr.bms-th { min-height: 34px; border-top: 0; background: var(--surf2); font-size: 11px; font-weight: 800; }
.bfl-ms .bms-tr > span:nth-child(2) { text-align: left; overflow: hidden; text-overflow: ellipsis; }
.bfl-ms .bms-tr .bms-tp { text-align: left; font-family: var(--fd); font-size: 16px; font-weight: 800; }
.bfl-ms .bms-tr .bms-tn { color: var(--text); font-weight: 600; }
.bfl-ms .bms-tr .bms-tb { text-align: right; font-family: var(--fd); font-size: 17px; font-weight: 900; color: var(--text); }
.bfl-ms .bms-tr.is-me, .bfl-ms .bms-tr.is-me .bms-tn { color: var(--text); font-weight: 800; }
@media (max-width: 380px) {
  .bfl-ms .bms-tr { grid-template-columns: 22px minmax(0, 1fr) 20px 20px 20px 20px 42px 26px; gap: 3px; padding: 0 8px; font-size: 12px; }
  .bfl-ms .bms-tab { font-size: 13px; }
}
