/**
 * Lionsports mobile /home — Dream444 content flow:
 * header → hero → sports strip → event rows → casino → footer → bottom nav
 */

@media only screen and (max-width: 991px) {
  /* Hero slider — always visible on mobile home */
  body.lion-route-home app-dashboard .slider-banner-wrap {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 5px;
    overflow: hidden;
    box-sizing: border-box;
  }

  body.lion-route-home app-dashboard .slider-banner-wrap img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
  }

  /* Sports icon strip — flex scroll + fixed search (details in lionsports-mobile-sports-strip.css) */
  app-dashboard .mobile-men.lion-mobile-sports-strip,
  body.lion-route-home app-dashboard > .mobile-men {
    display: flex !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 44px !important;
    max-height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--mbl-sports-bar-bg, #ffd259);
    box-sizing: border-box;
    overflow: hidden;
  }

  body.lion-route-home app-dashboard .game-menu-tab.homeevent {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  app-dashboard .mobile-men.lion-mobile-sports-strip .show-this,
  body.lion-route-home app-dashboard > .mobile-men .show-this {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    min-height: 44px !important;
    max-height: 44px !important;
    height: 44px !important;
  }

  app-dashboard .mobile-men.lion-mobile-sports-strip .a-search,
  body.lion-route-home app-dashboard > .mobile-men .a-search {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    z-index: 2 !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    place-items: center !important;
    background: #2a2a2a !important;
    border-left: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-sizing: border-box;
  }

  app-dashboard .mobile-men .a-search svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
  }

  app-dashboard .mobile-men .menu-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    scrollbar-width: none;
    box-sizing: border-box;
  }

  app-dashboard .mobile-men .menu-list::-webkit-scrollbar {
    display: none !important;
  }

  app-dashboard .mobile-men .menu-item {
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  /* height owned by lionsports-mobile-sports-strip.css */

  /* Scroll + list layout owned by lionsports-highlights-panel.css */
  body.lion-route-home app-dashboard .game-menu-tab .dashboard-custom-table:not(.lion-market-table) thead,
  body.lion-route-home app-dashboard .dashboard-custom-table:not(.lion-market-table) thead.hideDesktop {
    display: none !important;
  }

  body.lion-route-home app-dashboard .game-menu-tab .table {
    margin-bottom: 0 !important;
  }

  /* Casino section after sports rows */
  body.lion-route-home app-old-casino {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    order: 2;
  }

  body.lion-route-home app-dashboard {
    order: 1;
    display: block !important;
    width: 100% !important;
  }

  body.lion-route-home app-footer-desktop {
    display: block !important;
    order: 3;
    width: 100% !important;
  }

  body.lion-route-home .content > *,
  body.lion-route-home router-outlet + * {
    max-width: 100% !important;
    overflow-x: hidden;
  }

  /* Event rows — Dream mobile list (name + badges + pin; odds on market page only) */
  body.lion-route-home .dashboard-custom-table:not(.lion-market-table) {
    table-layout: auto !important;
    width: 100% !important;
    margin-bottom: 8px !important;
  }

  body.lion-route-home .dashboard-custom-table:not(.lion-market-table) .td-event-name {
    width: auto !important;
    max-width: none !important;
    overflow: visible;
  }

  body.lion-route-home .dashboard-custom-table:not(.lion-market-table) .fancy-and-sport-book-chips {
    width: auto !important;
    min-width: 52px !important;
    max-width: none !important;
  }

  body.lion-route-home .dashboard-custom-table:not(.lion-market-table) td.count,
  body.lion-route-home .dashboard-custom-table:not(.lion-market-table) .lion-odds-cell {
    display: none !important;
  }

  body.lion-route-home .dashboard-custom-table:not(.lion-market-table) .lion-pin-cell {
    width: 25px !important;
    min-width: 25px !important;
    max-width: 28px !important;
  }

  body.lion-route-home .dashboard-custom-table:not(.lion-market-table) .match-name {
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  body.lion-route-home .dashboard-custom-table:not(.lion-market-table) .in_play {
    display: inline !important;
    margin: 0 0 0 6px !important;
    font-size: 12px !important;
  }

  body.lion-route-home .dashboard-custom-table:not(.lion-market-table) .match-time {
    display: inline-block !important;
    font-size: 11px !important;
    margin: 0 0 0 5px !important;
  }

  body.lion-route-home .dashboard-custom-table:not(.lion-market-table) tr.lion-event-row,
  body.lion-route-home .dashboard-custom-table:not(.lion-market-table) tr[data-lion-event-id] {
    height: auto !important;
    min-height: 38px !important;
  }

  /* Bottom nav clearance */
  body.lion-route-home .app-body > .content {
    padding-bottom: 72px !important;
  }

  body.lion-route-home app-footer-desktop .footerDiv,
  body.lion-route-home app-footer-desktop .mobile-android-height {
    margin-bottom: 58px;
  }

  /* Casino provider strip owned by lionsports-mobile-casino-strip.css */

  body.lion-route-home app-old-casino .casinoicons img {
    border-radius: 6px;
    object-fit: cover;
  }

  body.lion-route-home .stickyContactUs,
  body.lion-route-home a.stickyContactUs {
    bottom: 64px !important;
    z-index: 9998 !important;
  }
}
