/* Tabs alter only the small-screen frontend; desktop retains original layout. */
@media (max-width:767px){
.lfcmp[data-mbx-tabs-ready="1"] .lfcmbx-mobile-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;padding:10px 8px;margin:0 0 10px;background:#111c28;border-radius:9px;align-items:stretch;}
.lfcmp .lfcmbx-mobile-tab{flex:1 0 auto;min-width:85px;border:1px solid #758296;background:#263747;color:#fff;font-size:12px;line-height:1.3;padding:11px 12px;border-radius:7px;font-weight:700;cursor:pointer;}
.lfcmp .lfcmbx-mobile-tab[aria-selected="true"]{background:#fff;color:#17212e;border-color:#fff;}
.lfcmp .lfcmbx-mobile-tab:focus-visible{outline:3px solid #ffcf3f;outline-offset:2px;}
.lfcmp[data-mbx-tabs-ready="1"] .lfcmp-body>[data-mbx-panel][hidden]{display:none!important;}
}
@media (min-width:768px){.lfcmp .lfcmbx-mobile-tabs{display:none!important}.lfcmp .lfcmp-body>[data-mbx-panel][hidden]{display:revert!important}}

@media(max-width:767px){
.lfcmp[data-mbx-tabs-ready="1"] .lfcmp-body{display:flex;flex-direction:column;}
.lfcmp[data-mbx-tabs-ready="1"] .lfcmp-body > .lfcmbx-mobile-tabs{order:-100;}
.lfcmp[data-mbx-tabs-ready="1"] .lfcmp-body > .lfcmp-info-grid[data-mbx-panel="prehľad"]{order:-80;}
.lfcmp[data-mbx-tabs-ready="1"] .lfcmp-body > .lfcmc-online-feed.lfcmbx-tab-copy[data-mbx-panel="prehľad"]{order:-70;}
.lfcmp[data-mbx-tabs-ready="1"] .lfcmp-body > .lfcmc-scorers-section[data-mbx-panel="prehľad"]{order:-60;}
.lfcmp[data-mbx-tabs-ready="1"] .lfcmp-body > .lfcmc-subs-box.lfcmbx-tab-copy[data-mbx-panel="prehľad"]{order:-50;}
.lfcmp[data-mbx-tabs-ready="1"] .lfcmp-body > .lfcmbx-mobile-original-feed{display:none!important;}
.lfcmbx-empty-events{padding:16px;text-align:center;color:#c9d2df;background:#182433;border-radius:8px;}
}
@media(min-width:768px){.lfcmp .lfcmp-body > .lfcmbx-tab-copy{display:none!important}.lfcmp .lfcmp-body > .lfcmbx-mobile-original-feed{display:block!important}}

/* The source feed is a data source only on mobile: timeline must never escape Events tab. */
@media(max-width:767px){
  section.lfcmp[data-mbx-fold="centre"] .lfcmp-body > .lfcmc-online-feed:not(.lfcmbx-tab-copy){display:none!important;}
  section.lfcmp[data-mbx-fold="centre"] .lfcmp-body > .lfcmc-online-feed.lfcmbx-tab-copy[data-mbx-panel="udalosti"]:not([hidden]){display:block;}
}

/* 2.18.101: the source live feed may also be rendered OUTSIDE .lfcmp-body
   (e.g. after a live refresh). Hide source instances everywhere on mobile.
   Only the organized tab copies remain visible; desktop is unchanged. */
@media (max-width:767px) {
  .lfcmc-online-feed:not(.lfcmbx-tab-copy) { display: none !important; }
  .lfcmbx-tab-copy.lfcmc-online-feed[data-mbx-panel][hidden] { display: none !important; }
}

/* 2.18.102: actual shortcode-appended chronological timeline, not online-feed. */
@media (max-width:767px){
 .lfcmbx-unified-timeline:not(.lfcmbx-timeline-in-tab){display:none!important;}
 .lfcmp[data-mbx-tabs-ready="1"] .lfcmp-body > .lfcmbx-timeline-in-tab[data-mbx-panel="udalosti"][hidden]{display:none!important;}
 .lfcmp .lfcmp-body > .lfcmbx-timeline-in-tab{max-width:100%;width:100%;margin:8px 0;padding:12px;box-sizing:border-box;}
}

/* 2.18.105: readable unified timeline heading in mobile Events tab. */
@media (max-width: 767px) {
  .lfcmp .lfcmp-body .lfcmbx-unified-timeline.lfcmbx-timeline-in-tab h3 {
    color: #17202a !important;
    -webkit-text-fill-color: #17202a !important;
    opacity: 1;
  }
}

/* 2.18.109: unified timeline belongs exclusively to the Events panel on mobile. */
@media (max-width:767px){
  section.lfcmp[data-mbx-fold="centre"]:not([data-mbx-selected-tab="udalosti"]) .lfcmp-body .lfcmbx-unified-timeline.lfcmbx-timeline-in-tab,
  section.lfcmp[data-mbx-fold="centre"] .lfcmp-body .lfcmbx-unified-timeline.lfcmbx-timeline-in-tab[hidden]{display:none!important;}
  .lfcmbx-unified-timeline .lfcmbx-timeline-event.is-liverpool{border-left:4px solid #d90429!important;background:#fff!important;}
  .lfcmbx-unified-timeline .lfcmbx-timeline-event.is-opponent{border-left:4px solid #94a3b8!important;background:#edf1f5!important;}
}
